aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-11-01 18:25:17 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-11-01 18:25:17 +0000
commitb9917457d5fb8b23f4b66296aec29e48058b9a29 (patch)
tree079524ea94d69307f19514786ff21f7be0c0b481 /tools/xenstore
parent33ca1047cba8e385f9b9f433627ed6c116bd4157 (diff)
downloadxen-b9917457d5fb8b23f4b66296aec29e48058b9a29.tar.gz
xen-b9917457d5fb8b23f4b66296aec29e48058b9a29.tar.bz2
xen-b9917457d5fb8b23f4b66296aec29e48058b9a29.zip
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 <dgdegra@tycho.nsa.gov> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/xenstore')
-rw-r--r--tools/xenstore/xenstored_core.c1
1 files changed, 0 insertions, 1 deletions
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,