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 1ea40f2da..2db435c1d 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -589,9 +589,9 @@ check_authkey_line_for_wildcard(struct sshkey *key, char *cp, const char *loc, s | |||
589 | if (advance_past_options(&cp) != 0) return -1; | 589 | if (advance_past_options(&cp) != 0) return -1; |
590 | skip_space(&cp); | 590 | skip_space(&cp); |
591 | 591 | ||
592 | if (!(*cp == '*' && (cp[1] == ' ' || cp[1] == '\n' || cp[1] == '\t' || cp[1] == '\0'))) { | 592 | // A wildcard auth line must start "* " or "*\t" |
593 | return -1; // This is not a wildcard auth line. | 593 | if (cp[0] != '*') return -1; |
594 | } | 594 | if (cp[1] != ' ' && cp[1] != '\t') return -1; |
595 | 595 | ||
596 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { | 596 | if ((keyopts = sshauthopt_parse(key_options, &reason)) == NULL) { |
597 | debug("%s: bad key options: %s", loc, reason); | 597 | debug("%s: bad key options: %s", loc, reason); |