[sr-dev] git:5.0:5274a0f9: sipcapture: keep hep buffer unmodified while getting PV $hep(NNN)

Øyvind Kolbu oyvind.kolbu at usit.uio.no
Wed Oct 25 12:06:42 CEST 2017


Module: kamailio
Branch: 5.0
Commit: 5274a0f9e5a5b74bbc37a6d74504b517d9dbfebe
URL: https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b517d9dbfebe

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Øyvind Kolbu <oyvind.kolbu at usit.uio.no>
Date: 2017-10-25T10:51:08+02:00

sipcapture: keep hep buffer unmodified while getting PV $hep(NNN)

- addition to GH PR #1191

(cherry picked from commit 2140d0141b5a7551ebbd072d801ce2339020dac0)

---

Modified: src/modules/sipcapture/hep.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b517d9dbfebe.diff
Patch: https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b517d9dbfebe.patch

---

diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index cd3338317c..6eaf13ab2b 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:




More information about the sr-dev mailing list