aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-02-13 15:56:01 -0500
committerNick Mathewson <nickm@torproject.org>2017-02-13 15:56:01 -0500
commitdca8ae5cfa8b081230d033158c980d50840b072a (patch)
treeabe2a89df68efc1c78c9f89f795d100d02adcd2b /src
parentb421b3f621986318e28d4cc44c28aae7fa909b86 (diff)
parente129393e40ae291b825d41946580d8a4cf63a61d (diff)
downloadtor-dca8ae5cfa8b081230d033158c980d50840b072a.tar.gz
tor-dca8ae5cfa8b081230d033158c980d50840b072a.zip
Merge remote-tracking branch 'dgoulet/bug21116_030_01'
Diffstat (limited to 'src')
-rw-r--r--src/test/test_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index fafb84f4fe..c317e724cc 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -5091,7 +5091,8 @@ test_util_socket(void *arg)
fd1 = tor_open_socket_with_extensions(domain, SOCK_STREAM, 0, 0, 0);
int err = tor_socket_errno(fd1);
- if (fd1 < 0 && err == SOCK_ERRNO(EPROTONOSUPPORT)) {
+ if (fd1 < 0 && (err == SOCK_ERRNO(EPROTONOSUPPORT) ||
+ err == SOCK_ERRNO(EAFNOSUPPORT))) {
/* Assume we're on an IPv4-only or IPv6-only system, and give up now. */
goto done;
}