changeset 6238:458aa25822fb HEAD

AUTHENTICATE "" command should return BAD instead of silence.
author Timo Sirainen <tss@iki.fi>
date Wed, 08 Aug 2007 17:14:30 +0300
parents ea9604a6cfd6
children b24199c8612d
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	Wed Aug 08 15:49:12 2007 +0300
+++ b/src/imap-login/client-authenticate.c	Wed Aug 08 17:14:30 2007 +0300
@@ -265,7 +265,7 @@
 
 	mech_name = IMAP_ARG_STR(&args[0]);
 	if (*mech_name == '\0')
-		return 0;
+		return -1;
 
 	client_ref(client);
 	sasl_server_auth_begin(&client->common, IMAP_SERVICE_NAME, mech_name,