diff options
author | djm <djm> | 2010-03-26 00:09:44 +0000 |
---|---|---|
committer | djm <djm> | 2010-03-26 00:09:44 +0000 |
commit | 3f6a3280609dc54eabd16650f72587d76d9c1d61 (patch) | |
tree | 362da7444251cde554ab4d6d6918f023fa85e968 /channels.c | |
parent | 7c6d0cc0c2c34c616a460776b249c8643973e5e5 (diff) | |
download | openssh-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |