summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index e9125a229..ceb85dd54 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.312 2005/07/25 11:59:40 markus Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.313 2005/09/13 23:40:07 djm Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -924,6 +924,9 @@ main(int ac, char **av)
924 if (geteuid() == 0 && setgroups(0, NULL) == -1) 924 if (geteuid() == 0 && setgroups(0, NULL) == -1)
925 debug("setgroups(): %.200s", strerror(errno)); 925 debug("setgroups(): %.200s", strerror(errno));
926 926
927 /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
928 sanitise_stdfd();
929
927 /* Initialize configuration options to their default values. */ 930 /* Initialize configuration options to their default values. */
928 initialize_server_options(&options); 931 initialize_server_options(&options);
929 932