summaryrefslogtreecommitdiff
path: root/ssh-keyscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r--ssh-keyscan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index 46f063687..8ac97bd35 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$OpenBSD: ssh-keyscan.c,v 1.55 2005/06/17 02:44:33 djm Exp $"); 10RCSID("$OpenBSD: ssh-keyscan.c,v 1.56 2005/09/13 23:40:07 djm Exp $");
11 11
12#include "openbsd-compat/sys-queue.h" 12#include "openbsd-compat/sys-queue.h"
13 13
@@ -712,6 +712,9 @@ main(int argc, char **argv)
712 seed_rng(); 712 seed_rng();
713 TAILQ_INIT(&tq); 713 TAILQ_INIT(&tq);
714 714
715 /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
716 sanitise_stdfd();
717
715 if (argc <= 1) 718 if (argc <= 1)
716 usage(); 719 usage();
717 720