Module: sip-router
Branch: master
Commit: f529cdb8b818017c20b73ba5be89309745ea95c5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f529cdb…
Author: Michal Karas <largon(a)largon.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.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 0ba8e8f..fbd2453 100644
--- a/parser/sdp/sdp.c
+++ b/parser/sdp/sdp.c
@@ -719,6 +719,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;