comparison signkey.c @ 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 69862e8cc405 06d52bcb8094
comparison
equal deleted inserted replaced
1423:c1c3d5943bfc 1424:8a4b8f026de6
548 } 548 }
549 #endif 549 #endif
550 #if DROPBEAR_ECDSA 550 #if DROPBEAR_ECDSA
551 if (signkey_is_ecdsa(type)) { 551 if (signkey_is_ecdsa(type)) {
552 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type); 552 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type);
553 if (eck) { 553 if (eck && *eck) {
554 return buf_ecdsa_verify(buf, *eck, data_buf); 554 return buf_ecdsa_verify(buf, *eck, data_buf);
555 } 555 }
556 } 556 }
557 #endif 557 #endif
558 558