Author: tfaber
Date: Mon Nov 9 17:00:26 2015
New Revision: 69856
URL:
http://svn.reactos.org/svn/reactos?rev=69856&view=rev
Log:
[MSAFD]
- SO_LINGER is not supported for datagram sockets. Patch by Peter Hater.
CORE-10440
Modified:
trunk/reactos/dll/win32/msafd/misc/dllmain.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllma…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Mon Nov 9 17:00:26 2015
@@ -2127,6 +2127,11 @@
break;
case SO_LINGER:
+ if (Socket->SharedData.SocketType == SOCK_DGRAM)
+ {
+ *lpErrno = WSAENOPROTOOPT;
+ return SOCKET_ERROR;
+ }
Buffer = &Socket->SharedData.LingerData;
BufferSize = sizeof(struct linger);
break;