]> granicus.if.org Git - php/commitdiff
should fix bug #5729
authorHartmut Holzgraefe <hholzgra@php.net>
Fri, 28 Jul 2000 12:21:44 +0000 (12:21 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Fri, 28 Jul 2000 12:21:44 +0000 (12:21 +0000)
# I'm unable to test, as I still haven't got working Windows
# Please check that it compiles.

win32/sendmail.c

index 1f57454ce91f8d9f8707fc9f4ef33f1a7238285e..876311eb35f9490194e6ac1cc974f5ffef5e6dac 100644 (file)
@@ -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;