summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-03 23:07:12 +0100
committerDamien Miller <djm@mindrot.org>2001-01-03 23:07:12 +0100
commitd54e55cf5c98bcc2d6397f7bfe4362c562d4515c (patch)
tree3d64c9f09c825f391cdf52ce7c1c535c1d9de820 /defines.h
parent - (bal) UnixWare 2.0 fixes by Tim Rice <tim@multitalents.net> (diff)
downloadopenssh-d54e55cf5c98bcc2d6397f7bfe4362c562d4515c.tar.xz
openssh-d54e55cf5c98bcc2d6397f7bfe4362c562d4515c.zip
- (djm) Fix memory leak on systems with BROKEN_GETADDRINFO. Based on
work by Chris Vaughan <vaughan99@yahoo.com>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 4c3941cad..45a187c19 100644
--- a/defines.h
+++ b/defines.h
@@ -348,7 +348,13 @@ struct winsize {
#if defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO)
# undef HAVE_GETADDRINFO
-#endif /* defined(BROKEN_GETADDRINFO) && defined(HAVE_GETADDRINFO) */
+#endif
+#if defined(BROKEN_GETADDRINFO) && defined(HAVE_FREEADDRINFO)
+# undef HAVE_FREEADDRINFO
+#endif
+#if defined(BROKEN_GETADDRINFO) && defined(HAVE_GAI_STRERROR)
+# undef HAVE_GAI_STRERROR
+#endif
#if !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY)
# define memmove(s1, s2, n) bcopy((s2), (s1), (n))