]> git.ipfire.org Git - thirdparty/curl.git/commit
select.h: make socket validation macros test for INVALID_SOCKET
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 3 Aug 2020 13:54:08 +0000 (15:54 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 25 Aug 2020 09:17:06 +0000 (11:17 +0200)
commit0f7c332f9f36f792a7903760b2a8db45091ed8b6
tree461dc8839b7c72841556959328724de669c89450
parent3a9042ea14b302da0606e1b2f46e1eda29f627c3
select.h: make socket validation macros test for INVALID_SOCKET

With Winsock the valid range is [0..INVALID_SOCKET-1] according to
https://docs.microsoft.com/en-us/windows/win32/winsock/socket-data-type-2

Reviewed-by: Jay Satiro
Reviewed-by: Marcel Raad
Reviewed-by: Daniel Stenberg
Closes #5760
lib/select.h