flexnbd: Allocate the right amount of memory for a struct client
This commit is contained in:
@@ -25,7 +25,7 @@ struct client *client_create( struct server *serve, int socket )
|
|||||||
|
|
||||||
struct client *c;
|
struct client *c;
|
||||||
|
|
||||||
c = xmalloc( sizeof( struct server ) );
|
c = xmalloc( sizeof( struct client ) );
|
||||||
c->stopped = 0;
|
c->stopped = 0;
|
||||||
c->socket = socket;
|
c->socket = socket;
|
||||||
c->serve = serve;
|
c->serve = serve;
|
||||||
|
Reference in New Issue
Block a user