diff options
author | root <root@rshg054.dnsready.net> | 2012-04-26 00:01:31 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-26 00:01:31 +0000 |
commit | 00e1a2f0886e471d594c22dc14fc9d80ce5098c4 (patch) | |
tree | b8c721e8b8050ead04f92a5051e4bee881defa9b /extra/networkmanager/initialize-GError.patch | |
parent | 98bf2ac3fdd6f7bcb6ce45c932fc13c07fecc03f (diff) |
Thu Apr 26 00:01:31 UTC 2012
Diffstat (limited to 'extra/networkmanager/initialize-GError.patch')
-rw-r--r-- | extra/networkmanager/initialize-GError.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/networkmanager/initialize-GError.patch b/extra/networkmanager/initialize-GError.patch new file mode 100644 index 000000000..58f0b9cb3 --- /dev/null +++ b/extra/networkmanager/initialize-GError.patch @@ -0,0 +1,23 @@ +From 8bb278944496102a4afad46b53e1e8279425aaac Mon Sep 17 00:00:00 2001 +From: Jiří Klimeš <jklimes@redhat.com> +Date: Mon, 02 Apr 2012 14:37:55 +0000 +Subject: libnm-glib: initialize GError, else invalid free() crash can occur (rh #809123) + +--- +(limited to 'libnm-glib/nm-remote-settings.c') + +diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c +index 9a81a8d..68aaeb4 100644 +--- a/libnm-glib/nm-remote-settings.c ++++ b/libnm-glib/nm-remote-settings.c +@@ -109,7 +109,7 @@ static void + _nm_remote_settings_ensure_inited (NMRemoteSettings *self) + { + NMRemoteSettingsPrivate *priv = NM_REMOTE_SETTINGS_GET_PRIVATE (self); +- GError *error; ++ GError *error = NULL; + + if (!priv->inited) { + if (!g_initable_init (G_INITABLE (self), NULL, &error)) { +-- +cgit v0.9.0.2-2-gbebe |