From: Josef 'Jeff' Sipek Date: Wed, 15 Feb 2017 18:46:06 +0000 (-0500) Subject: lib-imap-client: pass the reply text to the auth-failed state change callback X-Git-Tag: 2.3.0.rc1~2094 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65148af5184cf08d854f539c28cf61d646f77d3a;p=thirdparty%2Fdovecot%2Fcore.git lib-imap-client: pass the reply text to the auth-failed state change callback --- diff --git a/src/lib-imap-client/imapc-connection.c b/src/lib-imap-client/imapc-connection.c index 43524bc98b..80fe4c494c 100644 --- a/src/lib-imap-client/imapc-connection.c +++ b/src/lib-imap-client/imapc-connection.c @@ -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,