diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | misc.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -44,6 +44,11 @@ | |||
44 | - djm@cvs.openbsd.org 2013/07/12 00:20:00 | 44 | - djm@cvs.openbsd.org 2013/07/12 00:20:00 |
45 | [sftp.c ssh-keygen.c ssh-pkcs11.c] | 45 | [sftp.c ssh-keygen.c ssh-pkcs11.c] |
46 | fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@ | 46 | fix pointer-signedness warnings from clang/llvm-3.3; "seems nice" deraadt@ |
47 | - djm@cvs.openbsd.org 2013/07/12 00:43:50 | ||
48 | [misc.c] | ||
49 | in ssh_gai_strerror() don't fallback to strerror for EAI_SYSTEM when | ||
50 | errno == 0. Avoids confusing error message in some broken resolver | ||
51 | cases. bz#2122 patch from plautrba AT redhat.com; ok dtucker | ||
47 | 52 | ||
48 | 20130702 | 53 | 20130702 |
49 | - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config | 54 | - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.c,v 1.90 2013/06/01 13:15:52 dtucker Exp $ */ | 1 | /* $OpenBSD: misc.c,v 1.91 2013/07/12 00:43:50 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2005,2006 Damien Miller. All rights reserved. |
@@ -127,7 +127,7 @@ unset_nonblock(int fd) | |||
127 | const char * | 127 | const char * |
128 | ssh_gai_strerror(int gaierr) | 128 | ssh_gai_strerror(int gaierr) |
129 | { | 129 | { |
130 | if (gaierr == EAI_SYSTEM) | 130 | if (gaierr == EAI_SYSTEM && errno != 0) |
131 | return strerror(errno); | 131 | return strerror(errno); |
132 | return gai_strerror(gaierr); | 132 | return gai_strerror(gaierr); |
133 | } | 133 | } |