summaryrefslogtreecommitdiffstats
path: root/readconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-06-28 04:40:12 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-06-28 04:40:12 +0200
commita99c1b77ab1c866d42ebc48c86da5767b2f6f53d (patch)
tree1da2aeaf17ce59d7cf6c63624d60dcff07df1e11 /readconf.c
parent - miod@cvs.openbsd.org 2003/06/25 22:39:36 (diff)
downloadopenssh-a99c1b77ab1c866d42ebc48c86da5767b2f6f53d.tar.xz
openssh-a99c1b77ab1c866d42ebc48c86da5767b2f6f53d.zip
- markus@cvs.openbsd.org 2003/06/26 20:08:33
[readconf.c] do not dump core for 'ssh -o proxycommand host'; ok deraadt@
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/readconf.c b/readconf.c
index 2a77ea14f..a01d7a33e 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.112 2003/05/16 03:27:12 djm Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.113 2003/06/26 20:08:33 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -546,6 +546,8 @@ parse_string:
goto parse_string;
case oProxyCommand:
+ if (s == NULL)
+ fatal("%.200s line %d: Missing argument.", filename, linenum);
charptr = &options->proxy_command;
len = strspn(s, WHITESPACE "=");
if (*activep && *charptr == NULL)