diff options
Diffstat (limited to 'servconf.c')
-rw-r--r-- | servconf.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c index 729f23bad..8b8518aa8 100644 --- a/servconf.c +++ b/servconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: servconf.c,v 1.197 2009/10/28 16:38:18 reyk Exp $ */ | 1 | /* $OpenBSD: servconf.c,v 1.198 2009/12/25 19:40:21 stevesk Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -1298,7 +1298,16 @@ process_server_config_line(ServerOptions *options, char *line, | |||
1298 | 1298 | ||
1299 | case sRDomain: | 1299 | case sRDomain: |
1300 | intptr = &options->rdomain; | 1300 | intptr = &options->rdomain; |
1301 | goto parse_int; | 1301 | arg = strdelim(&cp); |
1302 | if (!arg || *arg == '\0') | ||
1303 | fatal("%s line %d: missing rdomain value.", | ||
1304 | filename, linenum); | ||
1305 | if ((value = a2rdomain(arg)) == -1) | ||
1306 | fatal("%s line %d: invalid rdomain value.", | ||
1307 | filename, linenum); | ||
1308 | if (*intptr == -1) | ||
1309 | *intptr = value; | ||
1310 | break; | ||
1302 | 1311 | ||
1303 | case sDeprecated: | 1312 | case sDeprecated: |
1304 | logit("%s line %d: Deprecated option %s", | 1313 | logit("%s line %d: Deprecated option %s", |