changeset 19301:5e48c5a29ddd

imap: APPEND crashed if invalid keyword was given as parameter.
author Timo Sirainen <tss@iki.fi>
date Tue, 13 Oct 2015 21:40:33 +0300
parents 727acba74cbf
children 3b1e7941542f
files src/imap/cmd-append.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-append.c	Tue Oct 13 21:21:48 2015 +0300
+++ b/src/imap/cmd-append.c	Tue Oct 13 21:40:33 2015 +0300
@@ -534,6 +534,7 @@
 			/* invalid keywords - delay failure */
 			client_send_box_error(cmd, ctx->box);
 			ctx->failed = TRUE;
+			keywords = NULL;
 		}
 	}