summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-11-19 08:23:27 +0000
committerDamien Miller <djm@mindrot.org>2015-11-19 19:25:04 +1100
commit88b6fcdeb87a2fb76767854d9eb15006662dca57 (patch)
treef035cd36f9a99f80bb3bdf24ee48df465bbe5412 /ssh.c
parent964ab3ee7a8f96bdbc963d5b5a91933d6045ebe7 (diff)
upstream commit
ban ConnectionAttempts=0, it makes no sense and would cause ssh_connect_direct() to print an uninitialised stack variable; bz#2500 reported by dvw AT phas.ubc.ca Upstream-ID: 32b5134c608270583a90b93a07b3feb3cbd5f7d5
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index cceb36e83..38e2b6674 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.429 2015/10/25 23:42:00 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.430 2015/11/19 08:23:27 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1096,6 +1096,8 @@ main(int ac, char **av)
1096 "disabling"); 1096 "disabling");
1097 options.update_hostkeys = 0; 1097 options.update_hostkeys = 0;
1098 } 1098 }
1099 if (options.connection_attempts <= 0)
1100 fatal("Invalid number of ConnectionAttempts");
1099#ifndef HAVE_CYGWIN 1101#ifndef HAVE_CYGWIN
1100 if (original_effective_uid != 0) 1102 if (original_effective_uid != 0)
1101 options.use_privileged_port = 0; 1103 options.use_privileged_port = 0;