Browse code

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

- addition to GH PR #1191

Mikko Lehto authored on 31/07/2017 10:08:58
Showing 1 changed files
... ...
@@ -973,8 +973,7 @@ int hepv3_get_chunk(struct sip_msg *msg, char *buf, unsigned int len, int req_ch
973 973
                                         goto done;
974 974
                                 case 9:
975 975
                                         hg->time_sec  = (hep_chunk_uint32_t *) (tmp);
976
-                                        hg->time_sec->data = ntohl(hg->time_sec->data);
977
-                                        ret = pv_get_uintval(msg, param, res, hg->time_sec->data);
976
+                                        ret = pv_get_uintval(msg, param, res, ntohl(hg->time_sec->data));
978 977
                                         goto done;
979 978
 
980 979
                                 case 10: