dovecot: Fix for last change: don't crash if temp buffer wasn't ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 6 03:18:23 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/1b7d91f7b151
changeset: 6538:1b7d91f7b151
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 06 03:18:19 2007 +0300
description:
Fix for last change: don't crash if temp buffer wasn't created..

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-mail/message-header-decode.c |    3 ++-

diffs (13 lines):

diff -r 58d9f94b9919 -r 1b7d91f7b151 src/lib-mail/message-header-decode.c
--- a/src/lib-mail/message-header-decode.c	Sat Oct 06 03:17:13 2007 +0300
+++ b/src/lib-mail/message-header-decode.c	Sat Oct 06 03:18:19 2007 +0300
@@ -111,7 +111,8 @@ void message_header_decode(const unsigne
 		(void)callback(data + start_pos, size - start_pos,
 			       NULL, context);
 	}
-	buffer_free(&decodebuf);
+	if (decodebuf != NULL)
+		buffer_free(&decodebuf);
 }
 
 struct decode_utf8_context {


More information about the dovecot-cvs mailing list