Skip to content

Commit

Permalink
core: parser - check value of pointer with white space code
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 4, 2022
1 parent 27d71da commit f65c98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parser/sdp/sdp_helpr_funcs.c
Expand Up @@ -376,7 +376,7 @@ int extract_ice_option(str *body, sdp_stream_cell_t *stream)
return -1;

ptr_src = body->s + 14;
if (ptr_src == 32) ptr_src++; /* if starts with a space, skip it */
if (*ptr_src == 32) ptr_src++; /* if starts with a space, skip it */

/* identify all existing ICE options, if they are listed in one row */
while (*ptr_src && *ptr_src != '\r' && *ptr_src != '\n' && max_options-->0)
Expand Down

0 comments on commit f65c98c

Please sign in to comment.