flexnbd: Allocate the right amount of memory for a struct client

This commit is contained in:
nick
2013-02-05 13:27:48 +00:00
parent 719bd30071
commit 0b3a71bb03

View File

@@ -25,7 +25,7 @@ struct client *client_create( struct server *serve, int socket )
struct client *c;
c = xmalloc( sizeof( struct server ) );
c = xmalloc( sizeof( struct client ) );
c->stopped = 0;
c->socket = socket;
c->serve = serve;