Module: kamailio
Branch: master
Commit: f65c98cf74e4495a6e892a701980c4b691a3390b
URL:
https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/f65c98cf74e4495a6e892a701980c4b…
Patch:
https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b…
---
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)