diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 18:55:58 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-01-08 18:55:58 +1100 |
commit | 75456e8ab2df99061a6aa69bcc914d05c2f4f98c (patch) | |
tree | e8ef591c547d797acb5e32638589ae04395769cb /servconf.c | |
parent | f2705c8b7d0b6a9cc33c244bdf041f2a1087e08a (diff) |
- stevesk@cvs.openbsd.org 2009/12/25 19:40:21
[readconf.c servconf.c misc.h ssh-keyscan.c misc.c]
validate routing domain is in range 0-RT_TABLEID_MAX.
'Looks right' deraadt@
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", |