[PATCH] fix keyfile plugin secret crashes
- From: Alexander Sack <asac jwsdot com>
- To: networkmanager-list gnome org
- Subject: [PATCH] fix keyfile plugin secret crashes
- Date: Tue, 16 Sep 2008 11:12:58 +0200
Forwarding patch for ubuntu bug https://bugs.launchpad.net/bugs/269010
Attached patch by Steve Langasek <steve langasek ubuntu com>:
* system-settings/plugins/keyfile/plugin.c: it might be better if we
were casting the data from the hash to a gobject, instead of the key
which is a filename... fixes a crash whenever trying to handle system-level
secrets. LP: #269010
- Alexander
---
system-settings/plugins/keyfile/plugin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: network-manager.07.ubuntu/system-settings/plugins/keyfile/plugin.c
===================================================================
--- network-manager.07.ubuntu.orig/system-settings/plugins/keyfile/plugin.c
+++ network-manager.07.ubuntu/system-settings/plugins/keyfile/plugin.c
@@ -78,17 +78,17 @@
typedef struct {
const char *uuid;
NMKeyfileConnection *found;
} FindByUUIDInfo;
static void
find_by_uuid (gpointer key, gpointer data, gpointer user_data)
{
- NMKeyfileConnection *keyfile = NM_KEYFILE_CONNECTION (key);
+ NMKeyfileConnection *keyfile = NM_KEYFILE_CONNECTION (data);
FindByUUIDInfo *info = user_data;
NMConnection *connection;
NMSettingConnection *s_con;
if (info->found)
return;
connection = nm_exported_connection_get_connection (NM_EXPORTED_CONNECTION (keyfile));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]