From 2b2df0cb103f1ee3bfee2c6ab1a28ff67d21dd35 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 3 Apr 2008 21:43:54 +0200 Subject: [PATCH] Fix a case where an EOF could be interpreted a previous errno (often ignorable). --- src/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet.c b/src/packet.c index 01c8a648..304dfe58 100644 --- a/src/packet.c +++ b/src/packet.c @@ -254,7 +254,7 @@ read_packet(rb_fde_t * F, void *data) if(length <= 0) { - if(rb_ignore_errno(errno)) + if(length < 0 && rb_ignore_errno(errno)) { rb_setselect(client_p->localClient->F, RB_SELECT_READ, read_packet, client_p);