[sr-dev] git:master:dac238ac: sipcapture: add missing or invalid byte order conversion
Mikko Lehto
mslehto at iki.fi
Thu Jul 27 22:03:21 CEST 2017
Module: kamailio
Branch: master
Commit: dac238ac3fdf2d0f47d6915508160b8160e9ab11
URL: https://github.com/kamailio/kamailio/commit/dac238ac3fdf2d0f47d6915508160b8160e9ab11
Author: Mikko Lehto <mslehto at iki.fi>
Committer: Mikko Lehto <mslehto at iki.fi>
Date: 2017-07-27T22:43:04+03:00
sipcapture: add missing or invalid byte order conversion
---
Modified: src/modules/sipcapture/hep.c
---
Diff: https://github.com/kamailio/kamailio/commit/dac238ac3fdf2d0f47d6915508160b8160e9ab11.diff
Patch: https://github.com/kamailio/kamailio/commit/dac238ac3fdf2d0f47d6915508160b8160e9ab11.patch
---
diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index c05180ecd8..8040b6680c 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);
More information about the sr-dev
mailing list