[gnome-online-accounts/gnome-3-20] kerberos: Don't leak the return_key in sign_in_identity_sync
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-20] kerberos: Don't leak the return_key in sign_in_identity_sync
- Date: Fri, 6 Jan 2017 12:15:30 +0000 (UTC)
commit 094d8b7f42cdacd307e43347cefae8299c676bb2
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 5 18:25:33 2017 +0100
kerberos: Don't leak the return_key in sign_in_identity_sync
https://bugzilla.gnome.org/show_bug.cgi?id=765121
src/goabackend/goakerberosprovider.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index a451d98..3624164 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -1568,7 +1568,7 @@ sign_in_identity_sync (GoaKerberosProvider *self,
{
GcrSecretExchange *secret_exchange;
char *secret_key;
- char *return_key;
+ char *return_key = NULL;
char *concealed_secret;
char *identity_object_path = NULL;
gboolean keys_exchanged;
@@ -1622,6 +1622,7 @@ sign_in_identity_sync (GoaKerberosProvider *self,
g_mutex_unlock (&identity_manager_mutex);
out:
+ g_free (return_key);
g_object_unref (secret_exchange);
return identity_object_path;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]