diff options
author | Andrew Cady <d@jerkface.net> | 2019-06-08 23:10:54 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-06-08 23:10:54 -0400 |
commit | 5c105cbaafc8971fe31755ce1245c3a20f6cd85c (patch) | |
tree | cd38f1073f513eb1b98a0223c364254066302745 | |
parent | 4dc8da7eea0ecc009239dff4ad8f79c9c148c142 (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 1f0436ebd..8580412d8 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -565,9 +565,9 @@ check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, s | |||
565 | if (advance_past_options(&cp) != 0) return -1; | 565 | if (advance_past_options(&cp) != 0) return -1; |
566 | skip_space(&cp); | 566 | skip_space(&cp); |
567 | 567 | ||
568 | if (!(*cp == '*' && (cp[1] == ' ' || cp[1] == '\n' || cp[1] == '\t' || cp[1] == '\0'))) { | 568 | // A wildcard auth line must start "* " or "*\t" |
569 | return -1; // This is not a wildcard auth line. | 569 | if (cp[0] != '*') return -1; |
570 | } | 570 | if (cp[1] != ' ' && cp[1] != '\t') return -1; |
571 | 571 | ||
572 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { | 572 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { |
573 | debug("%s: bad key options: %s", loc, reason); | 573 | debug("%s: bad key options: %s", loc, reason); |