changeset 9395:4c9f068e5ea1 HEAD

imap-login: Is dovecot-auth gives a reason for the failure, don't eat first 7 chars. Patch by Kirill Miazine.
author Timo Sirainen <tss@iki.fi>
date Tue, 29 Sep 2009 10:35:58 -0400
parents e7a973c0101b
children 401e023c8c29
files src/imap-login/client-authenticate.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap-login/client-authenticate.c	Tue Sep 29 10:14:56 2009 -0400
+++ b/src/imap-login/client-authenticate.c	Tue Sep 29 10:35:58 2009 -0400
@@ -153,7 +153,7 @@
 		else if (strcmp(key, "authz") == 0)
 			authz_failure = TRUE;
 		else if (strcmp(key, "reason") == 0)
-			reason = value + 7;
+			reason = value;
 		else if (strcmp(key, "host") == 0)
 			host = value;
 		else if (strcmp(key, "port") == 0)