Mercurial > dropbear
diff fuzzer-pubkey.c @ 1733:d529a52b2f7c coverity coverity
merge coverity from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 26 Jun 2020 21:07:34 +0800 |
parents | ba6fc7afe1c5 |
children |
line wrap: on
line diff
--- a/fuzzer-pubkey.c Thu Mar 21 23:28:59 2019 +0800 +++ b/fuzzer-pubkey.c Fri Jun 26 21:07:34 2020 +0800 @@ -27,7 +27,7 @@ unsigned int algolen; char* algoname = buf_getstring(keyblob, &algolen); - if (have_algo(algoname, algolen, sshhostkey) == DROPBEAR_FAILURE) { + if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNKEY_NONE) { dropbear_exit("fuzzer imagined a bogus algorithm"); }