stop if there is not enough data

This commit is contained in:
Love Hornquist Astrand
2010-10-07 00:01:06 -07:00
parent c50d442375
commit 3789b1111e

View File

@@ -916,7 +916,7 @@ handle_read(struct client *c)
c->flags &= ~WAITING_READ;
return;
}
if (dlen < c->ptr - sizeof(dlen)) {
if (dlen > c->ptr - sizeof(dlen)) {
break;
}