[dovecot-cvs] dovecot/src/auth mech-plain.c,1.7,1.8

cras at procontrol.fi cras at procontrol.fi
Sun Feb 9 19:10:22 EET 2003


Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv1292

Modified Files:
	mech-plain.c 
Log Message:
usernames with '@' char were supposed to be treated as user at realm, but that
was a bit buggy



Index: mech-plain.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech-plain.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- mech-plain.c	2 Feb 2003 10:16:42 -0000	1.7
+++ mech-plain.c	9 Feb 2003 17:10:19 -0000	1.8
@@ -46,7 +46,7 @@
 	auth_request->user = p_strdup(auth_request->pool, authenid);
 	auth_request->realm = strchr(auth_request->user, '@');
 	if (auth_request->realm != NULL)
-                auth_request->realm++;
+		*auth_request->realm++ = '\0';
 
 	passdb->verify_plain(auth_request, pass, verify_callback);
 




More information about the dovecot-cvs mailing list