Merge branch '3993-gcc-12-fanalyzer-claim-dereference-of-NULL' into 'main'

Resolve "GCC 12 static analyzer: error: dereference of NULL 'alginfo' in openssleddsa_link.c"

Closes #3993

See merge request isc-projects/bind9!7791
This commit is contained in:
Arаm Sаrgsyаn
2023-04-05 08:04:05 +00:00

View File

@@ -633,6 +633,7 @@ check_algorithm(unsigned char algorithm) {
DST_RET(ISC_R_NOTIMPLEMENTED);
}
INSIST(alginfo != NULL);
ret = raw_key_to_ossl(alginfo, 0, key, &key_len, &pkey);
if (ret != ISC_R_SUCCESS) {
goto err;