]> granicus.if.org Git - uw-imap/commitdiff
add files for 2008-08-08T16:31:44Z
authorUnknown <>
Fri, 8 Aug 2008 16:31:44 +0000 (16:31 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 7 Sep 2018 00:06:58 +0000 (00:06 +0000)
src/c-client/smtp.c

index 7cfa05ba6d6489c1c3c8799c287b5393347fdafd..0a3cf489ba08355b9b69b9197883cfebc11102ee 100644 (file)
@@ -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);