summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authordjm <djm>2010-03-26 00:09:44 +0000
committerdjm <djm>2010-03-26 00:09:44 +0000
commit3f6a3280609dc54eabd16650f72587d76d9c1d61 (patch)
tree362da7444251cde554ab4d6d6918f023fa85e968 /channels.c
parent7c6d0cc0c2c34c616a460776b249c8643973e5e5 (diff)
downloadopenssh-3f6a3280609dc54eabd16650f72587d76d9c1d61.tar.gz
- (djm) [channels.c] Check for EPFNOSUPPORT as a socket() errno; bz#1721
ok dtucker@
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index d8c53a4a..a55d2781 100644
--- a/channels.c
+++ b/channels.c
@@ -3252,7 +3252,11 @@ x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
sock = socket(ai->ai_family, ai->ai_socktype,
ai->ai_protocol);
if (sock < 0) {
- if ((errno != EINVAL) && (errno != EAFNOSUPPORT)) {
+ if ((errno != EINVAL) && (errno != EAFNOSUPPORT)
+#ifdef EPFNOSUPPORT
+ && (errno != EPFNOSUPPORT)
+#endif
+ ) {
error("socket: %.100s", strerror(errno));
freeaddrinfo(aitop);
return -1;