Module: kamailio
Branch: 5.0
Commit: 1ecac0c9eb4c328c9b69ae048817e1b13813b134
URL:
https://github.com/kamailio/kamailio/commit/1ecac0c9eb4c328c9b69ae048817e1b…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Ãyvind Kolbu <oyvind.kolbu(a)usit.uio.no>
Date: 2017-10-25T10:50:47+02:00
sipcapture: add missing or invalid byte order conversion
(cherry picked from commit dac238ac3fdf2d0f47d6915508160b8160e9ab11)
---
Modified: src/modules/sipcapture/hep.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1ecac0c9eb4c328c9b69ae048817e1b…
Patch:
https://github.com/kamailio/kamailio/commit/1ecac0c9eb4c328c9b69ae048817e1b…
---
diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index 5382e5817e..cd3338317c 100644
--- a/src/modules/sipcapture/hep.c
+++ b/src/modules/sipcapture/hep.c
@@ -989,13 +989,14 @@ int hepv3_get_chunk(struct sip_msg *msg, char *buf, unsigned int
len, int req_ch
case 12:
hg->capt_id = (hep_chunk_uint32_t *) (tmp);
- ret = pv_get_uintval(msg, param, res,
ntohs(hg->capt_id->data));
+ ret = pv_get_uintval(msg, param, res,
ntohl(hg->capt_id->data));
goto done;
case 13:
hg->keep_tm = (hep_chunk_uint16_t *) (tmp);
- ret = pv_get_uintval(msg, param, res,
hg->keep_tm->data);
+ ret = pv_get_uintval(msg, param, res,
ntohs(hg->keep_tm->data));
goto done;
+
case 14:
tmpstr.s = (char *) tmp + sizeof(hep_chunk_t);
tmpstr.len = chunk_length - sizeof(hep_chunk_t);