Skip to content

Commit

Permalink
Fixed TURN session use after free (#3814)
Browse files Browse the repository at this point in the history
Change-Id: Ie941658618e2a0e0da18a31dd0b449142c95bffa
  • Loading branch information
sauwming authored and aberaud committed Jan 8, 2024
1 parent d044ad6 commit 9363d59
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 @@ -1210,7 +1210,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 9363d59

Please sign in to comment.