From cb2c44f33d9d48f58e4c5e42ba2526a0c100218a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 13 Sep 2010 16:59:45 +0100 Subject: [PATCH] *-login: Ignore ENOTCONN error for shutdown() It's probably just a duplicate of a previous read() failure. --- src/login-common/client-common-auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3