changeset 5200:d93207ff2280 HEAD

Don't crash with invalid PLAIN input.
author Timo Sirainen <tss@iki.fi>
date Tue, 27 Feb 2007 18:56:53 +0200
parents 2bf812efe6a3
children 8920e744dac4
files src/auth/mech-plain.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/mech-plain.c	Sun Feb 25 17:40:38 2007 +0200
+++ b/src/auth/mech-plain.c	Tue Feb 27 18:56:53 2007 +0200
@@ -50,7 +50,7 @@
 		}
 	}
 
-	if (strcmp(authid, authenid) == 0) {
+	if (authenid != NULL && strcmp(authid, authenid) == 0) {
 		/* the login username isn't different */
 		authid = "";
 	}