commit | 89d9796fbedef4eed6956a2c095c7cc25330c28d | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Sat Oct 14 12:37:19 2000 +1100 |
committer | Damien Miller <djm@mindrot.org> | Sat Oct 14 12:37:19 2000 +1100 |
tree | cad7c8ba07ce733b41db684fb52444306026ff93 | |
parent | 15b2952cd83522051bafd23766ca1b75edfed124 [diff] [blame] |
- (djm) Add workaround for Linux 2.4's gratuitious errno change. Patch from Martin Johansson <fatbob@acc.umu.se>
diff --git a/channels.c b/channels.c index c842aa2..96d8dc4 100644 --- a/channels.c +++ b/channels.c
@@ -1759,7 +1759,7 @@ continue; sock = socket(ai->ai_family, SOCK_STREAM, 0); if (sock < 0) { - if (errno != EINVAL) { + if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) { error("socket: %.100s", strerror(errno)); return NULL; } else {