Commit 13e9477d authored by Jan Včelák's avatar Jan Včelák 🚀
Browse files

coverity fix: possible null-dereference

CID #1343647 #1343646
parent f10c107d
......@@ -49,7 +49,11 @@ static int keyid_bin(gnutls_x509_privkey_t key, gnutls_pubkey_t pubkey, dnssec_b
dnssec_binary_resize(id, size);
r = dnssec_binary_resize(id, size);
if (r != DNSSEC_EOK) {
return r;
memcpy(id->data, buffer, size);
return DNSSEC_EOK;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment