diff options
author | Damien Miller <djm@mindrot.org> | 2005-05-26 12:11:56 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-05-26 12:11:56 +1000 |
commit | 17b23d86577314547647aeda2a0e1205026f1769 (patch) | |
tree | da879089326fc1be022366f91bd32285776ae469 /servconf.c | |
parent | 538c9b71ecb11669053271ff95d7ce8a6d40294f (diff) |
- markus@cvs.openbsd.org 2005/05/16 15:30:51
[readconf.c servconf.c]
check return value from strdelim() for NULL (AddressFamily); mpech
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
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" |
13 | RCSID("$OpenBSD: servconf.c,v 1.140 2005/03/10 22:01:05 deraadt Exp $"); | 13 | RCSID("$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 " |