[seahorse] pkcs11: Fix null dereference in certificate destructor
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] pkcs11: Fix null dereference in certificate destructor
- Date: Tue, 22 Nov 2011 15:53:48 +0000 (UTC)
commit df4015ac031b01b8070a37d460f4df916b85db51
Author: Stef Walter <stefw collabora co uk>
Date: Tue Nov 22 16:53:22 2011 +0100
pkcs11: Fix null dereference in certificate destructor
pkcs11/seahorse-certificate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/seahorse-certificate.c b/pkcs11/seahorse-certificate.c
index 8538089..e2fb500 100644
--- a/pkcs11/seahorse-certificate.c
+++ b/pkcs11/seahorse-certificate.c
@@ -317,7 +317,7 @@ seahorse_certificate_set_partner (SeahorseCertificate *self,
g_return_if_fail (private_key == NULL || SEAHORSE_IS_PRIVATE_KEY (private_key));
if (self->pv->private_key)
- g_object_remove_weak_pointer (G_OBJECT (private_key),
+ g_object_remove_weak_pointer (G_OBJECT (self->pv->private_key),
(gpointer *)self->pv->private_key);
self->pv->private_key = private_key;
if (self->pv->private_key)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]