Fix possible use after free in _handle_end_apiregtag() when looping through a list
This commit is contained in:
parent
44d6c78ebf
commit
6cbf39f611
1 changed files with 3 additions and 0 deletions
|
@ -889,7 +889,10 @@ namespace pvpgn
|
|||
t_apiregmember * apiregmemberlist = (t_apiregmember*)elem_get_data(curr);
|
||||
|
||||
if (conn == apiregmember_get_conn(apiregmemberlist))
|
||||
{
|
||||
apiregmember_destroy(apiregmember, &curr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
conn_set_state(conn, conn_state_destroy);
|
||||
|
|
Loading…
Reference in a new issue