summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-07-28 12:21:44 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-07-28 12:21:44 +0000
commita525d022cebedb5d8c10c5d2b698117824b0a90c (patch)
tree45f5e2e0660f2fbe01c36d29e2937f1705e069ed
parent2c95b113bd1b58ff0796c4130c6c795cef0c6b91 (diff)
downloadphp-git-a525d022cebedb5d8c10c5d2b698117824b0a90c.tar.gz
should fix bug #5729
# I'm unable to test, as I still haven't got working Windows # Please check that it compiles.
-rw-r--r--win32/sendmail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 1f57454ce9..876311eb35 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -160,6 +160,9 @@ void TSMClose()
compomise the rest of the application if sockets are used
elesewhere
*/
+
+ shutdown(sc, 0);
+ closesocket(sc);
}
@@ -197,7 +200,6 @@ char *GetSMErrorText(int index)
//*******************************************************************/
int SendText(char *RPath, char *Subject, char *mailTo, char *data, char *headers)
{
-
int res, i;
char *p;
char *tempMailTo, *token, *pos1, *pos2;