Mercurial > dropbear
changeset 1379:616417b27f55 fuzz
fix null pointer crash
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 May 2017 00:19:53 +0800 |
parents | 7209a6e30932 |
children | d201105df2ed |
files | signkey.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/signkey.c Fri May 26 00:19:39 2017 +0800 +++ b/signkey.c Fri May 26 00:19:53 2017 +0800 @@ -547,7 +547,7 @@ #if DROPBEAR_ECDSA if (signkey_is_ecdsa(type)) { ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type); - if (eck) { + if (eck && *eck) { return buf_ecdsa_verify(buf, *eck, data_buf); } }