Commit b5ad8c0e authored by Jan Včelák's avatar Jan Včelák 🚀

coverity fix: unchecked return value

CID 1297156
parent 64ef7575
......@@ -169,7 +169,11 @@ int pem_gnutls_x509_export(gnutls_x509_privkey_t key, dnssec_binary_t *pem_ptr)
return DNSSEC_KEY_EXPORT_ERROR;
}
dnssec_binary_alloc(&pem, pem.size);
r = dnssec_binary_alloc(&pem, pem.size);
if (r != DNSSEC_EOK) {
return r;
}
r = try_export_pem(key, &pem);
if (r != GNUTLS_E_SUCCESS) {
dnssec_binary_free(&pem);
......
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