openldap-nss-pk11-freeslot.patch 846 B

12345678910111213141516171819202122232425262728
  1. Resolves: #929357
  2. From 6330d1b87a45b447f33fe8ffd6fbbce9e60bb0ec Mon Sep 17 00:00:00 2001
  3. From: Rich Megginson <rmeggins@redhat.com>
  4. Date: Thu, 28 Mar 2013 19:05:02 -0600
  5. Subject: [PATCH] must call PK11_FreeSlot after SECMOD_CloseUserDB to remove ref to slot
  6. ---
  7. libraries/libldap/tls_m.c | 2 ++
  8. 1 files changed, 2 insertions(+), 0 deletions(-)
  9. diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c
  10. index 072d41d..c59d303 100644
  11. --- a/libraries/libldap/tls_m.c
  12. +++ b/libraries/libldap/tls_m.c
  13. @@ -2063,6 +2063,8 @@ tlsm_ctx_free ( tls_ctx *ctx )
  14. "TLS: could not close certdb slot - error %d:%s.\n",
  15. errcode, PR_ErrorToString( errcode, PR_LANGUAGE_I_DEFAULT ), 0 );
  16. }
  17. + PK11_FreeSlot( c->tc_certdb_slot );
  18. + c->tc_certdb_slot = NULL;
  19. }
  20. PL_strfree( c->tc_pin_file );
  21. c->tc_pin_file = NULL;
  22. --
  23. 1.7.1