From: Unknown <> Date: Fri, 8 Aug 2008 16:31:44 +0000 (+0000) Subject: add files for 2008-08-08T16:31:44Z X-Git-Tag: imap-2007d~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92179076c8c3e127edc375ce3531df358431f6f3;p=uw-imap add files for 2008-08-08T16:31:44Z --- diff --git a/src/c-client/smtp.c b/src/c-client/smtp.c index 7cfa05b..0a3cf48 100644 --- a/src/c-client/smtp.c +++ b/src/c-client/smtp.c @@ -396,7 +396,8 @@ SENDSTREAM *smtp_close (SENDSTREAM *stream) if (stream) { /* send "QUIT" */ if (stream->netstream) { /* do close actions if have netstream */ smtp_send (stream,"QUIT",NIL); - net_close (stream->netstream); + if (stream->netstream) /* could have been closed during "QUIT" */ + net_close (stream->netstream); } /* clean up */ if (stream->host) fs_give ((void **) &stream->host);