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:
Joachim Bauch 2010-07-29 20:32:40 -04:00 committed by Nick Mathewson
parent 9e725f72e7
commit 840a72fbd5

View File

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