Module: kamailio
Branch: master
Commit: 76e6033ff14fec0f2db0b387803b4c5815a91163
URL:
https://github.com/kamailio/kamailio/commit/76e6033ff14fec0f2db0b387803b4c5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-06T14:56:36+02:00
core: catch empty string on parsing params
---
Modified: src/core/parser/parse_param.c
---
Diff:
https://github.com/kamailio/kamailio/commit/76e6033ff14fec0f2db0b387803b4c5…
Patch:
https://github.com/kamailio/kamailio/commit/76e6033ff14fec0f2db0b387803b4c5…
---
diff --git a/src/core/parser/parse_param.c b/src/core/parser/parse_param.c
index b80ffbdcc0..5452cbe50b 100644
--- a/src/core/parser/parse_param.c
+++ b/src/core/parser/parse_param.c
@@ -584,7 +584,7 @@ int parse_params2(
memset(_h, 0, sizeof(param_hooks_t));
*_p = 0;
- if(!_s->s) { /* no parameters at all -- we're done */
+ if(!_s->s || _s->len<=0) { /* no parameters at all -- we're done */
LM_DBG("empty uri params, skipping\n");
return 0;
}