From: Timo Sirainen Date: Wed, 26 May 2010 18:13:19 +0000 (+0100) Subject: doveadm auth: If we can't connect to auth socket, die instead of hanging. X-Git-Tag: 2.0.beta6~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f69a66239db671f36977655c2e8a14f9a325fff;p=thirdparty%2Fdovecot%2Fcore.git doveadm auth: If we can't connect to auth socket, die instead of hanging. --HG-- branch : HEAD --- diff --git a/src/doveadm/doveadm-auth.c b/src/doveadm/doveadm-auth.c index a9914553e3..f50aecd6a7 100644 --- a/src/doveadm/doveadm-auth.c +++ b/src/doveadm/doveadm-auth.c @@ -137,7 +137,8 @@ cmd_auth_input(const char *auth_socket_path, struct authtest_input *input) client = auth_client_init(auth_socket_path, getpid(), FALSE); auth_client_set_connect_notify(client, auth_connected, input); - io_loop_run(current_ioloop); + if (auth_client_is_connected(client)) + io_loop_run(current_ioloop); auth_client_set_connect_notify(client, NULL, NULL); auth_client_deinit(&client);