[dovecot-cvs] dovecot/src/auth passdb-ldap.c,1.44.2.14,1.44.2.15

tss at dovecot.org tss at dovecot.org
Thu Apr 12 19:23:46 EEST 2007


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

Modified Files:
      Tag: branch_1_0
	passdb-ldap.c 
Log Message:
Don't crash if doing non-plaintext ldap passdb lookup for unknown user.



Index: passdb-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-ldap.c,v
retrieving revision 1.44.2.14
retrieving revision 1.44.2.15
diff -u -d -r1.44.2.14 -r1.44.2.15
--- passdb-ldap.c	2 Apr 2007 10:23:07 -0000	1.44.2.14
+++ passdb-ldap.c	12 Apr 2007 16:23:44 -0000	1.44.2.15
@@ -173,7 +173,12 @@
 		}
 	}
 
-	request->callback.verify_plain(passdb_result, auth_request);
+	if (auth_request->credentials != -1) {
+		request->callback.lookup_credentials(passdb_result, NULL,
+						     auth_request);
+	} else {
+		request->callback.verify_plain(passdb_result, auth_request);
+	}
 	auth_request_unref(&auth_request);
 	return NULL;
 }



More information about the dovecot-cvs mailing list