tproxy-example icon indicating copy to clipboard operation
tproxy-example copied to clipboard

'free' after list insert

Open bol-van opened this issue 9 years ago • 0 comments

in tproxy_example_conn.c in function "add_tcp_connection" free_conn is called after TAILQ_INSERT_HEAD(conn_list, conn, conn_ptrs); That leads to freed ptrs being in the list => segfault. Tail insertion should be the last action

bol-van avatar Feb 15 '16 06:02 bol-van