From: Stephan Bosch Date: Sun, 11 Mar 2018 20:18:02 +0000 (+0100) Subject: lib-auth-client: auth-master - Call io_loop_stop() at a single location X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17645693e76bc84a35971935ce07863eb09fe839;p=thirdparty%2Fdovecot%2Fcore.git lib-auth-client: auth-master - Call io_loop_stop() at a single location --- diff --git a/src/lib-auth-client/auth-master.c b/src/lib-auth-client/auth-master.c index 6c6a8d30f6..958067540b 100644 --- a/src/lib-auth-client/auth-master.c +++ b/src/lib-auth-client/auth-master.c @@ -229,6 +229,8 @@ auth_master_handle_input(struct auth_master_connection *conn, e_debug(conn->conn.event, "auth input: %s", t_strarray_join(args, "\t")); + io_loop_stop(conn->ioloop); + struct auth_master_reply mreply = { .reply = args[0], .args = args + 2, @@ -561,8 +563,6 @@ auth_lookup_reply_callback(const struct auth_master_reply *reply, void *context) const char *const *args = reply->args; unsigned int i, len; - io_loop_stop(lookup->conn->ioloop); - lookup->return_value = parse_reply(lookup, reply->reply, args); len = str_array_length(args); @@ -802,7 +802,6 @@ auth_user_list_reply_callback(const struct auth_master_reply *reply, const char *const *args = reply->args; timeout_reset(ctx->conn->to); - io_loop_stop(ctx->conn->ioloop); if (strcmp(reply->reply, "DONE") == 0) { if (args[0] != NULL && strcmp(args[0], "fail") == 0) { @@ -969,7 +968,6 @@ auth_cache_flush_reply_callback(const struct auth_master_reply *reply, else if (args[0] == NULL || str_to_uint(args[0], &ctx->count) < 0) ctx->failed = TRUE; - io_loop_stop(ctx->conn->ioloop); return 1; }