]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Don't crash if INBOX can't be opened.
authorTimo Sirainen <tss@iki.fi>
Sat, 27 Mar 2010 03:05:12 +0000 (05:05 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 27 Mar 2010 03:05:12 +0000 (05:05 +0200)
--HG--
branch : HEAD

src/pop3/main.c

index 13e4e61ba1f6692217cf1c5e2441d26566d91bb5..9884bb80642b9d6115adbb0a54981db6e3759b07 100644 (file)
@@ -103,7 +103,7 @@ client_create_from_input(const struct mail_storage_service_input *input,
                verbose_proctitle = TRUE;
 
        client = client_create(fd_in, fd_out, mail_user, user, set);
-       T_BEGIN {
+       if (client != NULL) T_BEGIN {
                client_add_input(client, input_buf);
        } T_END;
        return 0;