From: Timo Sirainen Date: Mon, 10 May 2004 21:27:54 +0000 (+0300) Subject: don't crash to errors X-Git-Tag: 1.1.alpha1~4094 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65dd81f1059ee74e1e46b7c069bf8789ba114705;p=thirdparty%2Fdovecot%2Fcore.git don't crash to errors --HG-- branch : HEAD --- diff --git a/src/pop3/client.c b/src/pop3/client.c index 2a0fc1cec3..c8d6698412 100644 --- a/src/pop3/client.c +++ b/src/pop3/client.c @@ -201,6 +201,7 @@ void client_send_line(struct client *client, const char *fmt, ...) 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 @@ void client_send_storage_error(struct client *client) 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"); }