diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index d81f42cb6..9812c0d2a 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.311 2018/02/10 05:43:26 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.312 2018/02/10 05:48:46 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1697,6 +1697,8 @@ do_ca_sign(struct passwd *pw, int argc, char **argv) | |||
1697 | } | 1697 | } |
1698 | free(otmp); | 1698 | free(otmp); |
1699 | } | 1699 | } |
1700 | if (n > SSHKEY_CERT_MAX_PRINCIPALS) | ||
1701 | fatal("Too many certificate principals specified"); | ||
1700 | 1702 | ||
1701 | tmp = tilde_expand_filename(argv[i], pw->pw_uid); | 1703 | tmp = tilde_expand_filename(argv[i], pw->pw_uid); |
1702 | if ((r = sshkey_load_public(tmp, &public, &comment)) != 0) | 1704 | if ((r = sshkey_load_public(tmp, &public, &comment)) != 0) |