Moved the ipaddr object into the connection object.

This commit is contained in:
Jan Vidar Krey
2009-08-03 18:14:34 +02:00
parent 27c71a75ee
commit 4e43746c1b
11 changed files with 24 additions and 45 deletions

View File

@@ -256,7 +256,7 @@ void net_on_accept(int server_fd, short ev, void *arg)
continue;
}
user = user_create(hub, fd);
user = user_create(hub, fd, &ipaddr);
if (!user)
{
LOG_ERROR("Unable to create user after socket accepted. Out of memory?");
@@ -264,9 +264,6 @@ void net_on_accept(int server_fd, short ev, void *arg)
break;
}
/* Store IP address in user object */
memcpy(&user->net.ipaddr, &ipaddr, sizeof(ipaddr));
#ifdef SSL_SUPPORT
net_con_ssl_accept(&user->net.connection);
#endif