diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2015-11-19 08:23:28 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2015-11-19 08:23:28 +0000 |
commit | c96981fe7d5e690e29c697ff1760e58967cab898 (patch) | |
tree | a8ac670d1941708f2028ca11eadfc7cf47ba46de /usr.bin/ssh/ssh.c | |
parent | 5914d05f817c274a6f32d537705030855e878e12 (diff) |
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
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 7021bc54a3d..ce7222a696b 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.429 2015/10/25 23:42:00 dtucker Exp $ */ +/* $OpenBSD: ssh.c,v 1.430 2015/11/19 08:23:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1066,6 +1066,9 @@ main(int ac, char **av) "disabling"); options.update_hostkeys = 0; } + if (options.connection_attempts <= 0) + fatal("Invalid number of ConnectionAttempts"); + if (original_effective_uid != 0) options.use_privileged_port = 0; |