[dovecot-cvs] dovecot/src/pop3 client.c,1.19,1.20

cras at procontrol.fi cras at procontrol.fi
Tue May 11 00:27:56 EEST 2004


Update of /home/cvs/dovecot/src/pop3
In directory talvi:/tmp/cvs-serv15048/pop3

Modified Files:
	client.c 
Log Message:
don't crash to errors



Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3/client.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- client.c	10 May 2004 21:25:42 -0000	1.19
+++ client.c	10 May 2004 21:27:54 -0000	1.20
@@ -201,6 +201,7 @@
 void client_send_storage_error(struct client *client)
 {
 	const char *error;
+	int syntax;
 
 	if (mailbox_is_inconsistent(client->mailbox)) {
 		client_send_line(client, "-ERR Mailbox is in inconsistent "
@@ -209,7 +210,7 @@
 		return;
 	}
 
-	error = mail_storage_get_last_error(client->storage, NULL);
+	error = mail_storage_get_last_error(client->storage, &syntax);
 	client_send_line(client, "-ERR %s", error != NULL ? error :
 			 "BUG: Unknown error");
 }



More information about the dovecot-cvs mailing list