Module: kamailio
Branch: master
Commit: ffb0a8624af952e619ddc5f6fa29c6655f17d4c9
URL:
https://github.com/kamailio/kamailio/commit/ffb0a8624af952e619ddc5f6fa29c66…
Author: Wolfgang Kampichler <dev(a)kampichler.info>
Committer: Wolfgang Kampichler <dev(a)kampichler.info>
Date: 2021-03-16T10:29:04+01:00
lost: bug-fix due to a code formatting error
---
Modified: src/modules/lost/utilities.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ffb0a8624af952e619ddc5f6fa29c66…
Patch:
https://github.com/kamailio/kamailio/commit/ffb0a8624af952e619ddc5f6fa29c66…
---
diff --git a/src/modules/lost/utilities.c b/src/modules/lost/utilities.c
index 8f56a61816..7aef5ea9d3 100644
--- a/src/modules/lost/utilities.c
+++ b/src/modules/lost/utilities.c
@@ -442,7 +442,10 @@ p_geolist_t lost_get_geolocation_header(struct sip_msg *msg, int
*items)
&& (hf->name.len == LOST_GEOLOC_HEADER_SIZE - 2)) {
/* possible hit */
if(strncasecmp(hf->name.s, LOST_GEOLOC_HEADER,
- LOST_GEOLOC_HEADER_SIZE) == 0) {
+ LOST_GEOLOC_HEADER_SIZE) == 0) {
+
+ hdr.s = hf->body.s;
+ hdr.len = hf->body.len;
LM_DBG("found geolocation header [%.*s]\n", hdr.len, hdr.s);