ws2_32: handle error return from get_sock_fd (Coverity).

This commit is contained in:
Marcus Meissner 2014-01-04 17:49:40 +01:00 committed by Alexandre Julliard
parent eddc91f6e7
commit 54dc91547d

View file

@ -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)