ws2_32: handle error return from get_sock_fd (Coverity).
This commit is contained in:
parent
eddc91f6e7
commit
54dc91547d
|
@ -1178,6 +1178,8 @@ static int set_ipx_packettype(int sock, int ptype)
|
|||
int fd = get_sock_fd( sock, 0, NULL ), ret = 0;
|
||||
TRACE("trying to set IPX_PTYPE: %d (fd: %d)\n", ptype, fd);
|
||||
|
||||
if (fd == -1) return SOCKET_ERROR;
|
||||
|
||||
/* We try to set the ipx type on ipx socket level. */
|
||||
#ifdef SOL_IPX
|
||||
if(setsockopt(fd, SOL_IPX, IPX_TYPE, &ptype, sizeof(ptype)) == -1)
|
||||
|
|
Loading…
Reference in New Issue