]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: pass the reply text to the auth-failed state change callback
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 15 Feb 2017 18:46:06 +0000 (13:46 -0500)
committerJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Wed, 15 Feb 2017 18:46:06 +0000 (13:46 -0500)
src/lib-imap-client/imapc-connection.c

index 43524bc98b224cb85fafcbf06af8999ece52b713..80fe4c494c78edf9aa09bc6024c8357f6e8cc725 100644 (file)
@@ -855,7 +855,7 @@ imapc_connection_authenticate_cb(const struct imapc_command_reply *reply,
        if (base64_decode(reply->text_full, input_len, NULL, buf) < 0) {
                imapc_auth_failed(conn,
                                  t_strdup_printf("Server sent non-base64 input for AUTHENTICATE: %s",
-                                                 error));
+                                                 reply->text_full));
        } else if (dsasl_client_input(conn->sasl_client, buf->data, buf->used, &error) < 0) {
                imapc_auth_failed(conn, error);
        } else if (dsasl_client_output(conn->sasl_client, &sasl_output,