Mercurial > dropbear
diff signkey.c @ 1379:616417b27f55 fuzz
fix null pointer crash
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 May 2017 00:19:53 +0800 |
parents | bc9e2e148f58 |
children | c98e242dc505 |
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); } }