Module: kamailio
Branch: master
Commit: e7dde847b449f8e2ac02f9a41b17d108a7f9c2f3
URL:
https://github.com/kamailio/kamailio/commit/e7dde847b449f8e2ac02f9a41b17d10…
Author: Holger Freyther <holger+github(a)freyther.de>
Committer: GitHub <noreply(a)github.com>
Date: 2016-12-21T16:42:55+01:00
Merge pull request #896 from zecke/sipcapture-fix-srcip-dstip
hep: Store ipstr in a static buffer for exporting to cfg
---
Modified: src/modules/sipcapture/hep.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e7dde847b449f8e2ac02f9a41b17d10…
Patch:
https://github.com/kamailio/kamailio/commit/e7dde847b449f8e2ac02f9a41b17d10…
---
diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index 1533c5d..11d2049 100644
--- a/src/modules/sipcapture/hep.c
+++ b/src/modules/sipcapture/hep.c
@@ -879,7 +879,7 @@ int hepv3_get_chunk(struct sip_msg *msg, char *buf, unsigned int len,
int req_ch
int chunk_vendor=0, chunk_type=0, chunk_length=0;
int total_length = 0;
int ret = 0;
- char ipstr[INET6_ADDRSTRLEN];
+ static char ipstr[INET6_ADDRSTRLEN];
if(memcmp(buf, "\x48\x45\x50\x33",4) && !memcmp(buf,
"\x45\x45\x50\x31",4)) {