[sr-dev] git:master:f65c98cf: core: parser - check value of pointer with white space code

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 4 09:45:15 CET 2022


Module: kamailio
Branch: master
Commit: f65c98cf74e4495a6e892a701980c4b691a3390b
URL: https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b691a3390b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/f65c98cf74e4495a6e892a701980c4b691a3390b.diff
Patch: https://github.com/kamailio/kamailio/commit/f65c98cf74e4495a6e892a701980c4b691a3390b.patch

---

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)




More information about the sr-dev mailing list