diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 3ddb4d392..1d61145c4 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.165 2008/01/19 23:09:49 djm Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.166 2008/06/11 21:01:35 grunk Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -452,7 +452,23 @@ parse_flag: | |||
452 | 452 | ||
453 | case oCheckHostIP: | 453 | case oCheckHostIP: |
454 | intptr = &options->check_host_ip; | 454 | intptr = &options->check_host_ip; |
455 | goto parse_flag; | 455 | arg = strdelim(&s); |
456 | if (!arg || *arg == '\0') | ||
457 | fatal("%.200s line %d: Missing CheckHostIP argument.", | ||
458 | filename, linenum); | ||
459 | value = 0; /* To avoid compiler warning... */ | ||
460 | if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0) | ||
461 | value = SSHCTL_CHECKHOSTIP_YES; | ||
462 | else if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0) | ||
463 | value = SSHCTL_CHECKHOSTIP_NO; | ||
464 | else if (strcmp(arg, "fingerprint") == 0) | ||
465 | value = SSHCTL_CHECKHOSTIP_FPR; | ||
466 | else | ||
467 | fatal("%.200s line %d: Bad CheckHostIP argument.", | ||
468 | filename, linenum); | ||
469 | if (*activep && *intptr == -1) | ||
470 | *intptr = value; | ||
471 | break; | ||
456 | 472 | ||
457 | case oVerifyHostKeyDNS: | 473 | case oVerifyHostKeyDNS: |
458 | intptr = &options->verify_host_key_dns; | 474 | intptr = &options->verify_host_key_dns; |