diff --git a/lib/tsocket/tsocket.c b/lib/tsocket/tsocket.c index b8dd6c89366..674858de0a5 100644 --- a/lib/tsocket/tsocket.c +++ b/lib/tsocket/tsocket.c @@ -46,8 +46,7 @@ int tsocket_simple_int_recv(struct tevent_req *req, int *perrno) *perrno = (int)error; return -1; default: - *perrno = EIO; - return -1; + break; } *perrno = EIO;