Module: sip-router
Branch: 3.3
Commit: 5771e1ed6c7b92ebab9e2da0251315498a5190e1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5771e1e…
Author: Michal Karas <largon(a)largon.net>
Committer: Richard Fuchs <rfuchs(a)sipwise.com>
Date: Thu Jul 12 17:38:15 2012 +0200
parser/sdp: prevent manipulation with freed structure
- FS#244
---
parser/sdp/sdp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c
index db9003a..5521aec 100644
--- a/parser/sdp/sdp.c
+++ b/parser/sdp/sdp.c
@@ -721,6 +721,7 @@ int parse_sdp(struct sip_msg* _m)
if (res != 0) {
LM_DBG("free_sdp\n");
free_sdp((sdp_info_t**)(void*)&_m->body);
+ return res;
}
/* The whole body is SDP */
((sdp_info_t*)_m->body)->raw_sdp.s = body.s;