From a99c1b77ab1c866d42ebc48c86da5767b2f6f53d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 28 Jun 2003 12:40:12 +1000 Subject: - markus@cvs.openbsd.org 2003/06/26 20:08:33 [readconf.c] do not dump core for 'ssh -o proxycommand host'; ok deraadt@ --- ChangeLog | 5 ++++- readconf.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7c311fd5a..4ff0c8832 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,9 @@ - miod@cvs.openbsd.org 2003/06/25 22:39:36 [sftp-server.c] Typo police: attribute is better written with an 'r'. + - markus@cvs.openbsd.org 2003/06/26 20:08:33 + [readconf.c] + do not dump core for 'ssh -o proxycommand host'; ok deraadt@ 20030624 - (dtucker) Have configure refer the user to config.log and @@ -596,4 +599,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.2826 2003/06/28 02:39:03 dtucker Exp $ +$Id: ChangeLog,v 1.2827 2003/06/28 02:40:12 dtucker Exp $ 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) -- cgit v1.2.3