mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix badly-behaved subtest of dns/bufferevent_connect_hostname
The bufferevent_connect_hostname test was specifying AF_INET, but the gethostbyname test we were using to see what error to expect was using PF_UNSPEC, leading to possible divergence of results.
This commit is contained in:
parent
9e725f72e7
commit
840a72fbd5
@ -1087,7 +1087,7 @@ test_bufferevent_connect_hostname(void *arg)
|
||||
* example.com is real.) Let's see what answer to expect. */
|
||||
struct evutil_addrinfo hints, *ai = NULL;
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = PF_UNSPEC;
|
||||
hints.ai_family = AF_INET;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
hints.ai_protocol = IPPROTO_TCP;
|
||||
expect_err5 = evutil_getaddrinfo(
|
||||
|
Loading…
x
Reference in New Issue
Block a user