File imap-2006c1-smtp_quit.patch of Package php5-firebird
--- src/c-client/smtp.c
+++ src/c-client/smtp.c
@@ -400,6 +400,8 @@
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);