Commit 34286779 34286779f9eac20b5f5f62bae78f40ec365ce007 by Sergey Poznyakoff

(pop3d_abquit): Flush and close the mailbox

only unless we're not in the AUTHORIZATION state.
Do not attempt to write to the output stream if a signal was
caught.
1 parent 6ba44162
......@@ -88,10 +88,13 @@ int
pop3d_abquit (int reason)
{
/* Unlock spool */
if (state != AUTHORIZATION)
{
pop3d_unlock ();
mailbox_flush (mbox, 0);
mailbox_close (mbox);
mailbox_destroy (&mbox);
}
switch (reason)
{
......@@ -101,7 +104,6 @@ pop3d_abquit (int reason)
break;
case ERR_SIGNAL:
pop3d_outf ("-ERR Quitting on signal\r\n");
syslog (LOG_ERR, _("Quitting on signal"));
break;
......