]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth-client: Fix error message if channel binding not supported by caller
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 Mar 2026 22:15:29 +0000 (00:15 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 12 Mar 2026 14:59:51 +0000 (14:59 +0000)
src/lib-auth-client/auth-client-request.c

index a293e40a2cde20bc574d760ca47e0bf366e08be8..b27a849ea2a7cae5a21fdca6089001931e5dedaf 100644 (file)
@@ -320,8 +320,7 @@ auth_client_request_fail(struct auth_client_request **_request,
        e->add_str("error", reason);
        e_debug(e->event(), "Failed: %s", reason);
 
-       if (reason != NULL)
-               args[0] = t_strconcat("reason=", reason, NULL);
+       args[0] = t_strconcat("reason=", reason, NULL);
 
        auth_client_send_cancel(request->conn->client, request->id);
        call_callback(request, status, NULL, args);
@@ -465,7 +464,7 @@ auth_client_request_handle_input(struct auth_client_request **_request,
                if (request->cbinding_callback == NULL) {
                        auth_client_request_fail(
                                &request, AUTH_REQUEST_STATUS_INTERNAL_FAIL,
-                               NULL);
+                               "Channel binding not supported");
                        return;
                }
                if (request->cbinding_callback(cbinding_type,