[dovecot-cvs] dovecot/src/auth mech-plain.c,1.35.2.2,1.35.2.3

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


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

Modified Files:
      Tag: branch_1_0
	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.35.2.2
retrieving revision 1.35.2.3
diff -u -d -r1.35.2.2 -r1.35.2.3
--- mech-plain.c	17 Feb 2007 11:45:43 -0000	1.35.2.2
+++ mech-plain.c	27 Feb 2007 16:56:50 -0000	1.35.2.3
@@ -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