diff options
author | Riza Sulistyo <riza@teluu.com> | 2014-07-09 06:43:32 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2014-07-09 06:43:32 +0000 |
commit | 5b50d8576999bf8ee31a039be36cb85fb991df7c (patch) | |
tree | 80647832c483fb85541f316dd67f09c05a057600 /pjmedia/src | |
parent | 08e171b10ff34f6eff82d1d81ed3859b7209dd2b (diff) |
Misc (re #1751): fix crash when receiving unhold message caused by access to invalid data as a result of pool reset (Thanks to Itay Bianco for the report).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4872 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src')
-rw-r--r-- | pjmedia/src/pjmedia/sdp_neg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia/sdp_neg.c b/pjmedia/src/pjmedia/sdp_neg.c index 8e50aa83..46f23a03 100644 --- a/pjmedia/src/pjmedia/sdp_neg.c +++ b/pjmedia/src/pjmedia/sdp_neg.c @@ -502,6 +502,10 @@ PJ_DEF(pj_status_t) pjmedia_sdp_neg_set_local_answer( pj_pool_t *pool, if (local) { neg->neg_local_sdp = pjmedia_sdp_session_clone(pool, local); if (neg->initial_sdp) { + /* Retain initial_sdp value. */ + neg->initial_sdp = pjmedia_sdp_session_clone(pool, + neg->initial_sdp); + /* I don't think there is anything in RFC 3264 that mandates * answerer to place the same origin (and increment version) * in the answer, but probably it won't hurt either. |