summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--misc.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9db3bb0ff..bcb297ee9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
4820130702 5320130702
49 - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config 54 - (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config
diff --git a/misc.c b/misc.c
index fd745444e..2bdfb6507 100644
--- a/misc.c
+++ b/misc.c
@@ -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)
127const char * 127const char *
128ssh_gai_strerror(int gaierr) 128ssh_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}