summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c5
1 files changed, 4 insertions, 1 deletions
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;