/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-0.9.4.0-libnm-glib-init-gerror.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-0.9.4.0-libnm-glib-init-gerror.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Apr 13 21:18:23 2012 UTC (2 years, 6 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Fix gnome-shell crashes when networkmanager is not running (thanks to Firartix for reporting). Do not use obsolete wext API by default, and build against libnl:3 when USE=-wimax (bug #410143, thanks to Davide Pesavento). Add a separate USE flag for modemmanager because not very many people need it. Drop old.

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 From 8bb278944496102a4afad46b53e1e8279425aaac Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= <jklimes@redhat.com>
3 Date: Mon, 2 Apr 2012 16:37:55 +0200
4 Subject: [PATCH] libnm-glib: initialize GError, else invalid free() crash can
5 occur (rh #809123)
6
7 ---
8 libnm-glib/nm-remote-settings.c | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11 diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c
12 index 9a81a8d..68aaeb4 100644
13 --- a/libnm-glib/nm-remote-settings.c
14 +++ b/libnm-glib/nm-remote-settings.c
15 @@ -109,7 +109,7 @@ static void
16 _nm_remote_settings_ensure_inited (NMRemoteSettings *self)
17 {
18 NMRemoteSettingsPrivate *priv = NM_REMOTE_SETTINGS_GET_PRIVATE (self);
19 - GError *error;
20 + GError *error = NULL;
21
22 if (!priv->inited) {
23 if (!g_initable_init (G_INITABLE (self), NULL, &error)) {
24 --
25 1.7.8.5

  ViewVC Help
Powered by ViewVC 1.1.20