search for: bad_client

Displaying 2 results from an estimated 2 matches for "bad_client".

Did you mean: adclient
2007 Nov 27
2
[PATCH] Make xenstored EOF-safe
...s/xenstore/xenstored_core.c Tue Nov 27 14:56:35 2007 +0000 @@ -1266,7 +1266,7 @@ static void handle_input(struct connecti if (in->inhdr) { bytes = conn->read(conn, in->hdr.raw + in->used, sizeof(in->hdr) - in->used); - if (bytes < 0) + if (bytes <= 0) goto bad_client; in->used += bytes; if (in->used != sizeof(in->hdr)) @@ -1288,7 +1288,7 @@ static void handle_input(struct connecti bytes = conn->read(conn, in->buffer + in->used, in->hdr.msg.len - in->used); - if (bytes < 0) + if (bytes <= 0) goto bad_client;...
2011 Oct 31
3
[PATCH] xenstored: Fix processing of zero-length messages
...0 insertions(+), 1 deletions(-) diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c index 5d308ca..9e6c2c7 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, -- 1.7.6.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel