]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
don't crash to errors
authorTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 21:27:54 +0000 (00:27 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 21:27:54 +0000 (00:27 +0300)
--HG--
branch : HEAD

src/pop3/client.c

index 2a0fc1cec3645906bc203b578dfc3c19feaf1984..c8d66984123e6582ac32b2ee20a7b9cdcaf55895 100644 (file)
@@ -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");
 }