[glib: 1/2] Fix potential Null pointer dereference. if "match" is NULL, it is dereferenced in match_free() (L:45
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Fix potential Null pointer dereference. if "match" is NULL, it is dereferenced in match_free() (L:45
- Date: Tue, 5 Jun 2018 14:39:38 +0000 (UTC)
commit 4ade09416b5e7b6d99883c4dd3b886605fdf043a
Author: Gaurav <ya1gaurav gmail com>
Date: Tue Jun 5 14:01:47 2018 +0000
Fix potential Null pointer dereference.
if "match" is NULL, it is dereferenced in match_free() (L:457)
gio/gdbusdaemon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c
index 3516183f9..e6b3c1af0 100644
--- a/gio/gdbusdaemon.c
+++ b/gio/gdbusdaemon.c
@@ -1247,8 +1247,8 @@ handle_remove_match (_GFreedesktopDBus *object,
else
_g_freedesktop_dbus_complete_remove_match (object, invocation);
}
-
- match_free (match);
+ if (match)
+ match_free (match);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]