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; }