- len is adjusted first by the amount of chars consumed so far - start pointer is adjusted to start new search (cherry picked from commit c9fbf6f46898dbb2a8413a1c9d824a56241f2288)
@@ -330,8 +330,8 @@ int extract_candidate(str *body, sdp_stream_cell_t *stream)
fl = space - start;
- start = space + 1;
len = len - (space - start + 1);
+ start = space + 1;
space = memchr(start, 32, len);
if(space == NULL) {