diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-08 23:10:54 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-16 14:44:23 -0400 |
commit | 9bfb6ca077fd499ea587683abc27e9b3bd0cc44e (patch) | |
tree | 7cb58818e22b2be19470ce060f3dc4a44fadff7b | |
parent | 075d1a82801ad898eeb02446d0b5399c622a329d (diff) |
conditional is more clear now
-rw-r--r-- | auth2-pubkey.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c index 0e39f6abd..a3cee1776 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -575,9 +575,9 @@ check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, s | |||
575 | if (advance_past_options(&cp) != 0) return -1; | 575 | if (advance_past_options(&cp) != 0) return -1; |
576 | skip_space(&cp); | 576 | skip_space(&cp); |
577 | 577 | ||
578 | if (!(*cp == '*' && (cp[1] == ' ' || cp[1] == '\n' || cp[1] == '\t' || cp[1] == '\0'))) { | 578 | // A wildcard auth line must start "* " or "*\t" |
579 | return -1; // This is not a wildcard auth line. | 579 | if (cp[0] != '*') return -1; |
580 | } | 580 | if (cp[1] != ' ' && cp[1] != '\t') return -1; |
581 | 581 | ||
582 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { | 582 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { |
583 | debug("%s: bad key options: %s", loc, reason); | 583 | debug("%s: bad key options: %s", loc, reason); |