From d4e7e15b8584dbab935d777bed557063345a24d6 Mon Sep 17 00:00:00 2001 From: hvlad Date: Sat, 7 Mar 2009 20:21:10 +0000 Subject: [PATCH] Correction for my patch re. errors at graceful socket shutdown --- src/remote/inet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/remote/inet.cpp b/src/remote/inet.cpp index 9050704dd0..50fb3d4df1 100644 --- a/src/remote/inet.cpp +++ b/src/remote/inet.cpp @@ -3057,8 +3057,9 @@ static bool packet_receive(rem_port* port, return false; } - if (!n && inetErrNo) { - inet_error(port, "read end_of_file", isc_net_read_err, inetErrNo); + if (!n) { + if (inetErrNo) + inet_error(port, "read end_of_file", isc_net_read_err, inetErrNo); return false; }