Skip to content

Commit

Permalink
Merge pull request #896 from zecke/sipcapture-fix-srcip-dstip
Browse files Browse the repository at this point in the history
hep: Store ipstr in a static buffer for exporting to cfg
  • Loading branch information
zecke committed Dec 21, 2016
2 parents 2919612 + 08140c5 commit e7dde84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sipcapture/hep.c
Expand Up @@ -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)) {

Expand Down

0 comments on commit e7dde84

Please sign in to comment.