ws2_32: Test WSAAccept optional callback parameter before trying to use it.
This commit is contained in:
parent
25a1803720
commit
75e511f3a7
|
@ -4386,6 +4386,8 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen,
|
|||
|
||||
if (cs == SOCKET_ERROR) return SOCKET_ERROR;
|
||||
|
||||
if (!lpfnCondition) return cs;
|
||||
|
||||
CallerId.buf = (char *)&src_addr;
|
||||
CallerId.len = sizeof(src_addr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue