[dovecot-cvs] dovecot/src/auth mech-plain.c,1.39,1.40

tss at dovecot.org tss at dovecot.org
Tue Feb 27 16:56:55 UTC 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv2434

Modified Files:
	mech-plain.c 
Log Message:
Don't crash with invalid PLAIN input.



Index: mech-plain.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech-plain.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mech-plain.c	17 Feb 2007 11:45:46 -0000	1.39
+++ mech-plain.c	27 Feb 2007 16:56:53 -0000	1.40
@@ -50,7 +50,7 @@
 		}
 	}
 
-	if (strcmp(authid, authenid) == 0) {
+	if (authenid != NULL && strcmp(authid, authenid) == 0) {
 		/* the login username isn't different */
 		authid = "";
 	}



More information about the dovecot-cvs mailing list