Commit 654cdae9 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez

crda: use gcry_mpi_release() when using gcry_mpi_scan()

Its not well documented you should do this but I found out
through valgrind. This fixes the last 4 valgrind issues
I was seeing with regdbdump.
Signed-off-by: 's avatarLuis R. Rodriguez <>
parent c2a7392a
......@@ -158,10 +158,14 @@ int crda_verify_db_signature(uint8_t *db, int dblen, int siglen)
"(public-key (rsa (n %m) (e %m)))",
mpi_n, mpi_e)) {
fprintf(stderr, "Failed to build RSA S-expression.\n");
goto out;
ok = gcry_pk_verify(signature, data, rsa) == 0;
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