Mercurial > dropbear
changeset 1424:8a4b8f026de6
fix null pointer crash
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 May 2017 00:19:53 +0800 |
parents | c1c3d5943bfc |
children | 39aaf9f4d576 |
files | signkey.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/signkey.c Sun May 21 18:53:09 2017 +0800 +++ b/signkey.c Fri May 26 00:19:53 2017 +0800 @@ -550,7 +550,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); } }