Procházet zdrojové kódy

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

- addition to GH PR #1191

(cherry picked from commit 2140d0141b5a7551ebbd072d801ce2339020dac0)
Mikko Lehto před 8 roky
rodič
revize
5274a0f9e5
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      src/modules/sipcapture/hep.c

+ 1 - 2
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: