diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-08-07 09:43:41 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-08-07 09:43:41 +0000 |
commit | f0bdf37277b4b7ab3ae03fbc4ddd452269196a1a (patch) | |
tree | 884dd91255cfeef7627455acee9ce65f35104855 /pjnath | |
parent | e73b94482189299eaf05fdca2850650d1f033663 (diff) |
Fixed bug in pj_ice_strans_get_running_comp_cnt(): wrong number of components may be returned
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2195 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r-- | pjnath/src/pjnath/ice_strans.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index b4abc60f..caaa5598 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -777,8 +777,7 @@ PJ_DEF(unsigned) pj_ice_strans_get_running_comp_cnt(pj_ice_strans *ice_st) PJ_ASSERT_RETURN(ice_st, PJ_EINVAL); if (ice_st->ice && ice_st->ice->rcand_cnt) { - return (ice_st->comp_cnt < ice_st->ice->rcand_cnt) ? - ice_st->comp_cnt : ice_st->ice->rcand_cnt; + return ice_st->ice->comp_cnt; } else { return ice_st->comp_cnt; } |