2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

[master] fix nsupdate test on windows

4888.	[test]		Initialize sockets correctly in sample-update so
			that nsupdate system test will will run on Windows.
			[RT #47097]
This commit is contained in:
Mark Andrews
2018-02-08 13:33:51 -08:00
committed by Evan Hunt
parent ecf6dcc5c6
commit 6757dc6488
3 changed files with 36 additions and 4 deletions

View File

@@ -641,10 +641,10 @@ initialise(void) {
exit(1);
}
/*
* The following APIs do not exist as functions in a library, but we must
* ask winsock for them. They are "extensions" -- but why they cannot be
* actual functions is beyond me. So, ask winsock for the pointers to the
* functions we need.
* The following APIs do not exist as functions in a library, but
* we must ask winsock for them. They are "extensions" -- but why
* they cannot be actual functions is beyond me. So, ask winsock
* for the pointers to the functions we need.
*/
sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
INSIST(sock != INVALID_SOCKET);