[sr-dev] git:master:ffb0a862: lost: bug-fix due to a code formatting error

Wolfgang Kampichler dev at kampichler.info
Fri Apr 9 16:10:51 CEST 2021


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

Author: Wolfgang Kampichler <dev at kampichler.info>
Committer: Wolfgang Kampichler <dev at 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/ffb0a8624af952e619ddc5f6fa29c6655f17d4c9.diff
Patch: https://github.com/kamailio/kamailio/commit/ffb0a8624af952e619ddc5f6fa29c6655f17d4c9.patch

---

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);
 




More information about the sr-dev mailing list