diff options
Diffstat (limited to 'ssh-ecdsa.c')
-rw-r--r-- | ssh-ecdsa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-ecdsa.c b/ssh-ecdsa.c index 74912dfd9..d7bf3c69b 100644 --- a/ssh-ecdsa.c +++ b/ssh-ecdsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-ecdsa.c,v 1.12 2015/12/11 04:21:12 mmcc Exp $ */ | 1 | /* $OpenBSD: ssh-ecdsa.c,v 1.13 2016/04/21 06:08:02 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2010 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2010 Damien Miller. All rights reserved. |
@@ -121,7 +121,8 @@ ssh_ecdsa_verify(const struct sshkey *key, | |||
121 | char *ktype = NULL; | 121 | char *ktype = NULL; |
122 | 122 | ||
123 | if (key == NULL || key->ecdsa == NULL || | 123 | if (key == NULL || key->ecdsa == NULL || |
124 | sshkey_type_plain(key->type) != KEY_ECDSA) | 124 | sshkey_type_plain(key->type) != KEY_ECDSA || |
125 | signature == NULL || signaturelen == 0) | ||
125 | return SSH_ERR_INVALID_ARGUMENT; | 126 | return SSH_ERR_INVALID_ARGUMENT; |
126 | 127 | ||
127 | if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 || | 128 | if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 || |