X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2Fwin32%2Fws2_32%2Fsrc%2Fsockctrl.c;h=2414b032315c2b5dece32a0c75a848da3a9b4a32;hp=1bf9e821249e09dc0740222262b0484e68ca7dff;hb=fe8ca04a83da02c6ed8cc90ece95431208efa0df;hpb=44ac5bf123b3d1bc493969ba4073953268d5b8ca diff --git a/reactos/dll/win32/ws2_32/src/sockctrl.c b/reactos/dll/win32/ws2_32/src/sockctrl.c index 1bf9e821249..2414b032315 100644 --- a/reactos/dll/win32/ws2_32/src/sockctrl.c +++ b/reactos/dll/win32/ws2_32/src/sockctrl.c @@ -236,6 +236,9 @@ getsockname(IN SOCKET s, } else { + /* Deference the Socket Context */ + WsSockDereference(Socket); + /* name or namelen not valid */ ErrorCode = WSAEFAULT; }