summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-14 15:40:10 -0500
committerDave Brolley <brolley@redhat.com>2009-12-14 15:40:10 -0500
commit81790974ef070041f3fc7f710f30d06eca7d4e73 (patch)
tree547ca6eb3ed671fb0344d8ff9fea68d440009324 /runtime
parent601dc75d18ffd5670830b56c8a5c0f817ab92013 (diff)
downloadsystemtap-steved-81790974ef070041f3fc7f710f30d06eca7d4e73.tar.gz
systemtap-steved-81790974ef070041f3fc7f710f30d06eca7d4e73.tar.xz
systemtap-steved-81790974ef070041f3fc7f710f30d06eca7d4e73.zip
Clean up NSS after errors occur during verification.
Diffstat (limited to 'runtime')
-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;
}