Crash fix part 2

This commit is contained in:
Jan Vidar Krey 2009-11-18 18:35:31 +01:00
parent f489e77602
commit e994f23ea0
2 changed files with 3 additions and 1 deletions

View File

@ -658,7 +658,6 @@ int hub_perform_login_checks(struct hub_info* hub, struct hub_user* user, struct
INF_CHECK(check_user_agent, hub, user, cmd); INF_CHECK(check_user_agent, hub, user, cmd);
INF_CHECK(check_acl, hub, user, cmd); INF_CHECK(check_acl, hub, user, cmd);
INF_CHECK(check_logged_in, hub, user, cmd); INF_CHECK(check_logged_in, hub, user, cmd);
return 0; return 0;
} }

View File

@ -101,6 +101,9 @@ static void net_con_event(int fd, short ev, void *arg)
struct net_connection* con = (struct net_connection*) arg; struct net_connection* con = (struct net_connection*) arg;
int events = net_con_convert_from_libevent_mask(ev); int events = net_con_convert_from_libevent_mask(ev);
if (!con->flags)
return;
if (net_con_flag_get(con, NET_CLEANUP)) if (net_con_flag_get(con, NET_CLEANUP))
{ {
hub_free(con); hub_free(con);