summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--readconf.c5
-rw-r--r--servconf.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a84287c81..15d1a7490 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,9 @@
53 - djm@cvs.openbsd.org 2005/05/10 10:30:43 53 - djm@cvs.openbsd.org 2005/05/10 10:30:43
54 [ssh.c] 54 [ssh.c]
55 report real errors on fallback from ControlMaster=no to normal connect 55 report real errors on fallback from ControlMaster=no to normal connect
56 - markus@cvs.openbsd.org 2005/05/16 15:30:51
57 [readconf.c servconf.c]
58 check return value from strdelim() for NULL (AddressFamily); mpech
56 59
5720050524 6020050524
58 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] 61 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
@@ -2552,4 +2555,4 @@
2552 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2555 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2553 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2556 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2554 2557
2555$Id: ChangeLog,v 1.3776 2005/05/26 02:11:28 djm Exp $ 2558$Id: ChangeLog,v 1.3777 2005/05/26 02:11:56 djm Exp $
diff --git a/readconf.c b/readconf.c
index 8ace1bbd4..d41220807 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: readconf.c,v 1.139 2005/03/10 22:01:05 deraadt Exp $"); 15RCSID("$OpenBSD: readconf.c,v 1.140 2005/05/16 15:30:51 markus Exp $");
16 16
17#include "ssh.h" 17#include "ssh.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -743,6 +743,9 @@ parse_int:
743 743
744 case oAddressFamily: 744 case oAddressFamily:
745 arg = strdelim(&s); 745 arg = strdelim(&s);
746 if (!arg || *arg == '\0')
747 fatal("%s line %d: missing address family.",
748 filename, linenum);
746 intptr = &options->address_family; 749 intptr = &options->address_family;
747 if (strcasecmp(arg, "inet") == 0) 750 if (strcasecmp(arg, "inet") == 0)
748 value = AF_INET; 751 value = AF_INET;
diff --git a/servconf.c b/servconf.c
index 96ad18084..ddb34f9b9 100644
--- a/servconf.c
+++ b/servconf.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: servconf.c,v 1.140 2005/03/10 22:01:05 deraadt Exp $"); 13RCSID("$OpenBSD: servconf.c,v 1.141 2005/05/16 15:30:51 markus Exp $");
14 14
15#include "ssh.h" 15#include "ssh.h"
16#include "log.h" 16#include "log.h"
@@ -532,6 +532,9 @@ parse_time:
532 532
533 case sAddressFamily: 533 case sAddressFamily:
534 arg = strdelim(&cp); 534 arg = strdelim(&cp);
535 if (!arg || *arg == '\0')
536 fatal("%s line %d: missing address family.",
537 filename, linenum);
535 intptr = &options->address_family; 538 intptr = &options->address_family;
536 if (options->listen_addrs != NULL) 539 if (options->listen_addrs != NULL)
537 fatal("%s line %d: address family must be specified before " 540 fatal("%s line %d: address family must be specified before "