From b9917457d5fb8b23f4b66296aec29e48058b9a29 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 1 Nov 2011 18:25:17 +0000 Subject: xenstored: Fix processing of zero-length messages When a message with zero length is sent to xenstore, the body of the message was not processed until the socket or ring had more data to read; this will cause deadlocks if the requestor is waiting on a response to continue. Signed-off-by: Daniel De Graaf Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/xenstore/xenstored_core.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tools/xenstore') diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index 5d308cad86..9e6c2c7baf 100644 --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -1297,7 +1297,6 @@ static void handle_input(struct connection *conn) goto bad_client; in->used = 0; in->inhdr = false; - return; } bytes = conn->read(conn, in->buffer + in->used, -- cgit v1.2.3