Skip to content

Commit

Permalink
sipcapture: keep hep buffer unmodified while getting PV $hep(NNN)
Browse files Browse the repository at this point in the history
- addition to GH PR #1191

(cherry picked from commit 2140d01)
  • Loading branch information
mslehto authored and oyvindkolbu committed Oct 25, 2017
1 parent f909250 commit 5274a0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/sipcapture/hep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5274a0f

Please sign in to comment.