core: fix crash in impl_settings_get_connection_by_uuid() when requesing non-existing uuid

Regression introduced by commit 8ab8990938.

Found running
  $ ./dfuzzer -v -n com.redhat.ifcfgrh1

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1113508

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-06-26 17:34:54 +02:00
parent 214f523f3f
commit 7665585d4d

View file

@ -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;