fix null pointer crash

This commit is contained in:
Matt Johnston 2017-05-26 00:19:53 +08:00
parent 0ab0687a3a
commit 924b8469cb

View File

@ -550,7 +550,7 @@ int buf_verify(buffer * buf, sign_key *key, buffer *data_buf) {
#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);
}
}