Skip to content
Snippets Groups Projects
Commit 839ab869 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

libdnssec: fix null pointer dereference (Thanks Coverity)

parent a2899ce4
No related branches found
No related tags found
No related merge requests found
Pipeline #40487 passed with warnings
......@@ -357,7 +357,7 @@ static int pkcs11_import_key(void *_ctx, const dnssec_binary_t *pem, char **id_p
}
*id_ptr = bin_to_hex(id.data, id.size);
if (id_ptr == NULL) {
if (*id_ptr == NULL) {
return DNSSEC_ENOMEM;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment