dovecot-2.2: lib-imap-urlauth: Don't try to access garbage memor...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 2 18:32:52 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/24aa10efe132
changeset: 16325:24aa10efe132
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 02 18:32:47 2013 +0300
description:
lib-imap-urlauth: Don't try to access garbage memory on error handling path.

diffstat:

 src/lib-imap-urlauth/imap-urlauth.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 2a3134b0c25d -r 24aa10efe132 src/lib-imap-urlauth/imap-urlauth.c
--- a/src/lib-imap-urlauth/imap-urlauth.c	Thu May 02 18:29:50 2013 +0300
+++ b/src/lib-imap-urlauth/imap-urlauth.c	Thu May 02 18:32:47 2013 +0300
@@ -362,6 +362,7 @@
 	unsigned char mailbox_key[IMAP_URLAUTH_KEY_LEN];
 	int ret;
 
+	*mpurl_r = NULL;
 	*error_r = NULL;
 	*error_code_r = MAIL_ERROR_NONE;
 


More information about the dovecot-cvs mailing list