diff options
author | Steve Hay <SteveHay@planit.com> | 2005-04-18 16:04:20 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-04-18 16:04:20 +0000 |
commit | f9169742e89a053d2b45fc68a78b7b0ce030b537 (patch) | |
tree | 8252ac1839f4390a727ac1bd614ee93471ce6fad /win32/win32sck.c | |
parent | d5b5861bfad2c5081a544610aa6f33c0ea24ea2b (diff) | |
download | perl-f9169742e89a053d2b45fc68a78b7b0ce030b537.tar.gz |
Fix bug #33664: allow for transport providers with protocol == 0
(This indicates that any protocol may be used, so don't bother checking
that the requested protocol matches in this case.)
p4raw-id: //depot/perl@24242
Diffstat (limited to 'win32/win32sck.c')
-rw-r--r-- | win32/win32sck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/win32sck.c b/win32/win32sck.c index 6b3d354fd1..051b442bd4 100644 --- a/win32/win32sck.c +++ b/win32/win32sck.c @@ -426,7 +426,8 @@ open_ifs_socket(int af, int type, int protocol) if ((af != AF_UNSPEC && af != proto_buffers[i].iAddressFamily) || (type != proto_buffers[i].iSocketType) - || (protocol != 0 && protocol != proto_buffers[i].iProtocol)) + || (protocol != 0 && proto_buffers[i].iProtocol != 0 && + protocol != proto_buffers[i].iProtocol)) continue; if ((proto_buffers[i].dwServiceFlags1 & XP1_IFS_HANDLES) == 0) |