Module: kamailio Branch: master Commit: 2140d0141b5a7551ebbd072d801ce2339020dac0 URL: https://github.com/kamailio/kamailio/commit/2140d0141b5a7551ebbd072d801ce233...
Author: Mikko Lehto mslehto@iki.fi Committer: Mikko Lehto mslehto@iki.fi Date: 2017-07-31T14:42:24+03:00
sipcapture: keep hep buffer unmodified while getting PV $hep(NNN)
- addition to GH PR #1191
---
Modified: src/modules/sipcapture/hep.c
---
Diff: https://github.com/kamailio/kamailio/commit/2140d0141b5a7551ebbd072d801ce233... Patch: https://github.com/kamailio/kamailio/commit/2140d0141b5a7551ebbd072d801ce233...
---
diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c index 8040b6680c..1653d905fe 100644 --- a/src/modules/sipcapture/hep.c +++ b/src/modules/sipcapture/hep.c @@ -973,8 +973,7 @@ int hepv3_get_chunk(struct sip_msg *msg, char *buf, unsigned int len, int req_ch goto done; case 9: hg->time_sec = (hep_chunk_uint32_t *) (tmp); - hg->time_sec->data = ntohl(hg->time_sec->data); - ret = pv_get_uintval(msg, param, res, hg->time_sec->data); + ret = pv_get_uintval(msg, param, res, ntohl(hg->time_sec->data)); goto done;
case 10: