Skip to content
Snippets Groups Projects
Commit b5ad8c0e authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

coverity fix: unchecked return value

CID 1297156
parent 64ef7575
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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