From 0b3a71bb0303560763d5dbc9b29bf1ba109f9796 Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 5 Feb 2013 13:27:48 +0000 Subject: [PATCH] flexnbd: Allocate the right amount of memory for a struct client --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 79bfb0b..a35d162 100644 --- a/src/client.c +++ b/src/client.c @@ -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;