瀏覽代碼

rtpproxy-ng: fix extraction of multipart SDP body

reported by: Jasmin Schnatterbeck
Richard Fuchs 12 年之前
父節點
當前提交
2e033c85d2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/rtpproxy-ng/rtpproxy_funcs.c

+ 1 - 0
modules/rtpproxy-ng/rtpproxy_funcs.c

@@ -257,6 +257,7 @@ int extract_body(struct sip_msg *msg, str *body )
 		} /* end of while */
 		if(c==1)
 		{
+			while(rest && (*rest=='\r' || *rest=='\n')) rest++;
 			body->s = rest;
 			body->len = p2-rest;
 			goto done;