diff options
Diffstat (limited to 'auth2-pubkey.c')
-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); |