From ce0c8f29c67e1bb6e13ef9a731d1510618305d1d 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 (cherry picked from commit 7665585d4dd5394c8c7df3b072425ace230a9a52) --- 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 b4d9c22ea3..334b8af839 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;