From: Timo Sirainen Date: Sat, 27 Mar 2010 03:05:12 +0000 (+0200) Subject: pop3: Don't crash if INBOX can't be opened. X-Git-Tag: 2.0.beta5~263 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1f9314bdd7da1a8f5596b49ec6b7b5c5daa4079;p=thirdparty%2Fdovecot%2Fcore.git pop3: Don't crash if INBOX can't be opened. --HG-- branch : HEAD --- diff --git a/src/pop3/main.c b/src/pop3/main.c index 13e4e61ba1..9884bb8064 100644 --- a/src/pop3/main.c +++ b/src/pop3/main.c @@ -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;