Преглед изворни кода

core: sdp - removed invalid condition

- introduced in commit 3198b66
- GH #4229

(cherry picked from commit 444fef809c21b250402cfdbd48de65926ac6286a)
Daniel-Constantin Mierla пре 4 месеци
родитељ
комит
21c944e4a8
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      src/core/parser/sdp/sdp_helpr_funcs.c

+ 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");