dovecot-2.0: auth: Don't pass uninitialized value to callback fu...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 5 01:30:03 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/53c6cbb2932b
changeset: 11046:53c6cbb2932b
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 05 01:30:00 2010 +0300
description:
auth: Don't pass uninitialized value to callback function.
(Even though callback shouldn't use it then.)

diffstat:

 src/auth/passdb.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r d931e61516d0 -r 53c6cbb2932b src/auth/passdb.c
--- a/src/auth/passdb.c	Mon Apr 05 01:27:58 2010 +0300
+++ b/src/auth/passdb.c	Mon Apr 05 01:30:00 2010 +0300
@@ -134,7 +134,7 @@
 			       lookup_credentials_callback_t *callback,
                                struct auth_request *auth_request)
 {
-	const unsigned char *credentials;
+	const unsigned char *credentials = NULL;
 	size_t size = 0;
 
 	if (result != PASSDB_RESULT_OK) {


More information about the dovecot-cvs mailing list