Skip to content

Commit

Permalink
Remove valgrind warning for pjnath (points to uninitialised byte) (#3052
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jimying committed Oct 19, 2022
1 parent 41c2494 commit 6f2ea3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjnath/src/pjnath/stun_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ PJ_DEF(pj_status_t) pj_stun_session_send_msg( pj_stun_session *sess,

/* Allocate packet */
tdata->max_len = PJ_STUN_MAX_PKT_LEN;
tdata->pkt = pj_pool_alloc(tdata->pool, tdata->max_len);
tdata->pkt = pj_pool_zalloc(tdata->pool, tdata->max_len);

tdata->token = token;
tdata->retransmit = retransmit;
Expand Down

0 comments on commit 6f2ea3a

Please sign in to comment.