Skip to content

Commit

Permalink
Misc (re #1751): fix crash when receiving unhold message caused by ac…
Browse files Browse the repository at this point in the history
…cess 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
  • Loading branch information
riza committed Jul 9, 2014
1 parent 8621dad commit d16c85f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pjmedia/src/pjmedia/sdp_neg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d16c85f

Please sign in to comment.