summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/modverify.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/staprun/modverify.c')
-rw-r--r--runtime/staprun/modverify.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/staprun/modverify.c b/runtime/staprun/modverify.c
index 4ed5eb74..a17bb2ec 100644
--- a/runtime/staprun/modverify.c
+++ b/runtime/staprun/modverify.c
@@ -330,6 +330,7 @@ int verify_module (const char *signatureName, const char* module_name,
fprintf (stderr, "Unable to initialize nss library using the database in %s.\n",
dbdir);
nssError ();
+ nssCleanup ();
return MODULE_CHECK_ERROR;
}
@@ -339,6 +340,7 @@ int verify_module (const char *signatureName, const char* module_name,
fprintf (stderr, "Unable to find certificates in the certificate database in %s.\n",
dbdir);
nssError ();
+ nssCleanup ();
return MODULE_UNTRUSTED;
}
@@ -355,6 +357,7 @@ int verify_module (const char *signatureName, const char* module_name,
fprintf (stderr, "Unable to extract public key from the certificate with nickname %s from the certificate database in %s.\n",
cert->nickname, dbdir);
nssError ();
+ nssCleanup ();
return MODULE_CHECK_ERROR;
}