[dovecot-cvs] dovecot/src/imap cmd-append.c,1.47,1.48

cras at dovecot.org cras at dovecot.org
Mon Oct 11 17:25:03 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv10262

Modified Files:
	cmd-append.c 
Log Message:
Handle failures without crashing



Index: cmd-append.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- cmd-append.c	26 Sep 2004 10:37:03 -0000	1.47
+++ cmd-append.c	11 Oct 2004 14:25:01 -0000	1.48
@@ -89,8 +89,10 @@
 	}
 
 	if (args->type != IMAP_ARG_LITERAL_SIZE &&
-	    args->type != IMAP_ARG_LITERAL_SIZE_NONSYNC)
+	    args->type != IMAP_ARG_LITERAL_SIZE_NONSYNC) {
+		*nonsync = FALSE;
 		return FALSE;
+	}
 
 	*nonsync = args->type == IMAP_ARG_LITERAL_SIZE_NONSYNC;
 	*msg_size = IMAP_ARG_LITERAL_SIZE(args);



More information about the dovecot-cvs mailing list