/[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.2 - (hide annotations) (download)
Mon Dec 1 10:16:21 2014 UTC (2 weeks, 5 days ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
drop old

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 tetromino 1.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