Module: kamailio Branch: master Commit: f65c98cf74e4495a6e892a701980c4b691a3390b URL: https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b6...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-03-04T09:43:13+01:00
core: parser - check value of pointer with white space code
---
Modified: src/core/parser/sdp/sdp_helpr_funcs.c
---
Diff: https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b6... Patch: https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b6...
---
diff --git a/src/core/parser/sdp/sdp_helpr_funcs.c b/src/core/parser/sdp/sdp_helpr_funcs.c index 9fae1f7448..c2b817f3e4 100644 --- a/src/core/parser/sdp/sdp_helpr_funcs.c +++ b/src/core/parser/sdp/sdp_helpr_funcs.c @@ -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)