comparison 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
comparison
equal deleted inserted replaced
1378:7209a6e30932 1379:616417b27f55
545 } 545 }
546 #endif 546 #endif
547 #if DROPBEAR_ECDSA 547 #if DROPBEAR_ECDSA
548 if (signkey_is_ecdsa(type)) { 548 if (signkey_is_ecdsa(type)) {
549 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type); 549 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type);
550 if (eck) { 550 if (eck && *eck) {
551 return buf_ecdsa_verify(buf, *eck, data_buf); 551 return buf_ecdsa_verify(buf, *eck, data_buf);
552 } 552 }
553 } 553 }
554 #endif 554 #endif
555 555