Fix possible use after free in _handle_end_apiregtag() when looping through a list

This commit is contained in:
RElesgoe 2016-08-23 20:33:53 -07:00
parent 44d6c78ebf
commit 6cbf39f611

View file

@ -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);