Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37911919
en ru br
ALT Linux repos
S:9.4p1-alt1
5.0: 5.2p1-alt1.1
4.1: 5.0p1-alt3
4.0: 5.0p1-alt3
+updates:4.7p1-alt1
3.0: 3.6.1p2-alt6

Group :: Networking/Remote access
RPM: openssh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: openssh-3.4p1-kevin-resolver.patch
Download


--- openssh-3.4p1/sshd.c~	2002-06-26 03:24:19 +0400
+++ openssh-3.4p1/sshd.c	2002-07-02 13:56:26 +0400
@@ -92,6 +92,10 @@
 int deny_severity = LOG_WARNING;
 #endif /* LIBWRAP */
 
+#ifdef HAVE_LIBRESOLV
+#include <resolv.h>
+#endif /* HAVE_LIBRESOLV */
+
 #ifndef O_NOCTTY
 #define O_NOCTTY	0
 #endif
@@ -1410,6 +1414,17 @@
 	    sizeof(on)) < 0)
 		error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
 
+#ifdef HAVE_LIBRESOLV
+	/*
+	 * Initialize the resolver.  This may not happen automatically
+	 * before privsep chroot().
+	 */
+	if (!(_res.options & RES_INIT)) {
+	        debug("res_init()");
+	        res_init();
+	}
+#endif /* HAVE_LIBRESOLV */
+
 	/*
 	 * Register our connection.  This turns encryption off because we do
 	 * not have a key.
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin