From: Timo Sirainen Date: Mon, 13 Sep 2010 15:59:45 +0000 (+0100) Subject: *-login: Ignore ENOTCONN error for shutdown() X-Git-Tag: 2.0.3~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb2c44f33d9d48f58e4c5e42ba2526a0c100218a;p=thirdparty%2Fdovecot%2Fcore.git *-login: Ignore ENOTCONN error for shutdown() It's probably just a duplicate of a previous read() failure. --- diff --git a/src/login-common/client-common-auth.c b/src/login-common/client-common-auth.c index bbc513ad53..8236e1e599 100644 --- a/src/login-common/client-common-auth.c +++ b/src/login-common/client-common-auth.c @@ -442,7 +442,7 @@ sasl_callback(struct client *client, enum sasl_server_reply sasl_reply, /* the fd may still be hanging somewhere in kernel or another process. make sure the client gets disconnected. */ - if (shutdown(client->fd, SHUT_RDWR) < 0) + if (shutdown(client->fd, SHUT_RDWR) < 0 && errno != ENOTCONN) i_error("shutdown() failed: %m"); if (data == NULL)