Skip to content

Commit

Permalink
Fixed TURN session use after free (#3814)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Jan 5, 2024
1 parent 3ed76a1 commit ca0c440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjnath/src/pjnath/turn_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ PJ_DEF(pj_status_t) pj_turn_session_connection_bind(
PJ_STUN_ATTR_CONNECTION_ID,
conn_id);

conn_bind = PJ_POOL_ZALLOC_T(pool, struct conn_bind_t);
conn_bind = PJ_POOL_ZALLOC_T(tdata->pool, struct conn_bind_t);
conn_bind->id = conn_id;
pj_sockaddr_cp(&conn_bind->peer_addr, peer_addr);
conn_bind->peer_addr_len = addr_len;
Expand Down

0 comments on commit ca0c440

Please sign in to comment.