mirror of
https://github.com/clearml/dropbear
synced 2025-03-14 23:58:28 +00:00
fix null pointer crash
--HG-- branch : fuzz
This commit is contained in:
parent
65baa71b58
commit
f24d93d4e4
@ -547,7 +547,7 @@ int buf_verify(buffer * buf, sign_key *key, buffer *data_buf) {
|
|||||||
#if DROPBEAR_ECDSA
|
#if DROPBEAR_ECDSA
|
||||||
if (signkey_is_ecdsa(type)) {
|
if (signkey_is_ecdsa(type)) {
|
||||||
ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type);
|
ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type);
|
||||||
if (eck) {
|
if (eck && *eck) {
|
||||||
return buf_ecdsa_verify(buf, *eck, data_buf);
|
return buf_ecdsa_verify(buf, *eck, data_buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user