Ver Fonte

rtpproxy-ng: fix extraction of multipart SDP body

reported by: Jasmin Schnatterbeck
Richard Fuchs há 12 anos atrás
pai
commit
2e033c85d2
1 ficheiros alterados com 1 adições e 0 exclusões
  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;