Skip to content

'free' after list insert #1

@bol-van

Description

@bol-van

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions