]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Don't pass uninitialized value to callback function.
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:30:00 +0000 (01:30 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:30:00 +0000 (01:30 +0300)
(Even though callback shouldn't use it then.)

--HG--
branch : HEAD

src/auth/passdb.c

index c892845223f8d38e19ad4b6ac6a5dfb3499af62a..a53c501ea94556e94fbc67b502c983d3f541cb0b 100644 (file)
@@ -134,7 +134,7 @@ void passdb_handle_credentials(enum passdb_result result,
                               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) {