Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111400202
D29976.id88127.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
653 B
Referenced Files
None
Subscribers
None
D29976.id88127.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D29976: sshd: Force early initialization of the resolver library
Attached
Detach File
Event Timeline
Log In to Comment