From 7665585d4dd5394c8c7df3b072425ace230a9a52 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 26 Jun 2014 17:34:54 +0200 Subject: [PATCH] core: fix crash in impl_settings_get_connection_by_uuid() when requesing non-existing uuid Regression introduced by commit 8ab8990938b995a8b49e995ff844fa359c9b4443. Found running $ ./dfuzzer -v -n com.redhat.ifcfgrh1 Related: https://bugzilla.redhat.com/show_bug.cgi?id=1113508 Signed-off-by: Thomas Haller --- src/settings/nm-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index 6b34bf89e8..d3054eb251 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -276,7 +276,7 @@ impl_settings_get_connection_by_uuid (NMSettings *self, DBusGMethodInvocation *context) { NMSettingsConnection *connection = NULL; - NMAuthSubject *subject; + NMAuthSubject *subject = NULL; GError *error = NULL; char *error_desc = NULL;