From: Joseph C. Lehner Date: Fri, 5 Feb 2016 16:43:50 +0000 (+0200) Subject: Fix winsock shutdown call X-Git-Tag: v0.9~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7196e445cab5049ef9fa5c9cce6043be0946f579;p=oweals%2Fnmrpflash.git Fix winsock shutdown call --- diff --git a/tftp.c b/tftp.c index 2c71b71..1f7d611 100644 --- a/tftp.c +++ b/tftp.c @@ -296,10 +296,11 @@ cleanup: } if (sock >= 0) { - shutdown(sock, SHUT_RDWR); #ifndef NMRPFLASH_WINDOWS + shutdown(sock, SHUT_RDWR); close(sock); #else + shutdown(sock, SD_BOTH); closesocket(sock); #endif }