[dovecot-cvs] dovecot/src/pop3 commands.c,1.55,1.56

tss at dovecot.org tss at dovecot.org
Fri Jan 26 13:58:59 UTC 2007


Update of /var/lib/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv15340/pop3

Modified Files:
	commands.c 
Log Message:
Cleanups and minor fixes



Index: commands.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3/commands.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- commands.c	10 Aug 2006 22:32:10 -0000	1.55
+++ commands.c	26 Jan 2007 13:58:56 -0000	1.56
@@ -237,8 +237,12 @@
 		}
 	}
 
-	mailbox_transaction_commit(&client->trans,
-				   MAILBOX_SYNC_FLAG_FULL_WRITE);
+	if (mailbox_transaction_commit(&client->trans,
+				       MAILBOX_SYNC_FLAG_FULL_WRITE) < 0) {
+		client_send_storage_error(client);
+		client_disconnect(client, "Storage error during logout.");
+		return 1;
+	}
 
 	if (!client->deleted)
 		client_send_line(client, "+OK Logging out.");



More information about the dovecot-cvs mailing list