]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Use the PK11_DestroyContext() instead of PK11_Finalize() to destroy
authorGreg Hudson <ghudson@mit.edu>
Tue, 28 Sep 2010 00:02:03 +0000 (00:02 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 28 Sep 2010 00:02:03 +0000 (00:02 +0000)
crypto contexts in hmac.c as well.

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/nss@24366 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/nss/hmac.c

index ceed1d1715c2851c5adb607841b0c83b03dd38c7..a909e6ec1328c98ab18bd7b5d9df37e439013b37 100644 (file)
@@ -159,7 +159,7 @@ krb5int_hmac(const struct krb5_hash_provider *hash, krb5_key key,
 fail:
     ret = k5_nss_map_last_error();
     if (ctx)
-        PK11_Finalize(ctx);
+        PK11_DestroyContext(ctx, PR_TRUE);
     return ret;
 }