2
0
Эх сурвалжийг харах

core: sdp - removed invalid condition

- introduced in commit 3198b66
- GH #4229
Daniel-Constantin Mierla 4 сар өмнө
parent
commit
444fef809c

+ 1 - 4
src/core/parser/sdp/sdp_helpr_funcs.c

@@ -332,10 +332,7 @@ int extract_candidate(str *body, sdp_stream_cell_t *stream)
 
 	start = space + 1;
 	len = len - (space - start + 1);
-	if(start + len > body->s + body->len) {
-		LM_ERR("no component in `a=candidate'\n");
-		return -1;
-	}
+
 	space = memchr(start, 32, len);
 	if(space == NULL) {
 		LM_ERR("no component in `a=candidate'\n");