瀏覽代碼

parser/sdp: prevent manipulation with freed structure

- FS#244
Michal Karas 13 年之前
父節點
當前提交
f529cdb8b8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      parser/sdp/sdp.c

+ 1 - 0
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;