Page MenuHomeFreeBSD

D29976.id88127.diff
No OneTemporary

D29976.id88127.diff

Index: sshd.c
===================================================================
--- sshd.c
+++ sshd.c
@@ -65,6 +65,7 @@
#endif
#include <grp.h>
#include <pwd.h>
+#include <resolv.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
@@ -2130,6 +2131,17 @@
ssh_signal(SIGCHLD, SIG_DFL);
ssh_signal(SIGINT, SIG_DFL);
+#ifdef __FreeBSD__
+ /*
+ * Initialize the resolver. This may not happen automatically
+ * before privsep chroot().
+ */
+ if ((_res.options & RES_INIT) == 0) {
+ debug("res_init()");
+ res_init();
+ }
+#endif
+
/*
* Register our connection. This turns encryption off because we do
* not have a key.

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 4, 7:34 AM (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16965106
Default Alt Text
D29976.id88127.diff (653 B)

Event Timeline