diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-07-12 06:39:36 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-07-12 06:39:36 +0000 |
commit | 731e8056a506187e2ba8b809d782e18164cf765e (patch) | |
tree | 1e64df51cce5abc03d55f51aa5979a6dcb6e3f77 /pjnath | |
parent | 108ad63d51c2210c49c356a424039e5fbe5ef7a9 (diff) |
Fixed #1552: Possible crash if media transport stop() is called on ICE transport while ICE is not created (thanks Iliya Prince for the fix)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4203 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r-- | pjnath/src/pjnath/ice_strans.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index f5561a91..a19d9b80 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -1145,6 +1145,8 @@ pj_ice_strans_get_valid_pair(const pj_ice_strans *ice_st, */ PJ_DEF(pj_status_t) pj_ice_strans_stop_ice(pj_ice_strans *ice_st) { + PJ_ASSERT_RETURN(ice_st, PJ_EINVAL); + if (ice_st->ice) { pj_ice_sess_destroy(ice_st->ice); ice_st->ice = NULL; |