Blame SOURCES/0001-lib-avoid-freeing-uninitialized-variable-in-authsele.patch

93643d
From 6924b8f8d82ecd32e897cf5f441e5c87f8816859 Mon Sep 17 00:00:00 2001
93643d
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
93643d
Date: Thu, 22 Jul 2021 11:29:20 +0200
93643d
Subject: [PATCH] lib: avoid freeing uninitialized variable in
93643d
 authselect_apply_changes()
93643d
93643d
If authselect_profile() fails, we goto done and try to free uninitialized
93643d
variable.
93643d
93643d
Resolves:
93643d
https://github.com/authselect/authselect/issues/265
93643d
---
93643d
 src/lib/authselect.c | 2 +-
93643d
 1 file changed, 1 insertion(+), 1 deletion(-)
93643d
93643d
diff --git a/src/lib/authselect.c b/src/lib/authselect.c
93643d
index 0f43e12202c16769dfc6ac7dee41812159cc1d3a..a901e02719713bd13d5a4fab606ee713b3d6ddca 100644
93643d
--- a/src/lib/authselect.c
93643d
+++ b/src/lib/authselect.c
93643d
@@ -163,7 +163,7 @@ authselect_uninstall(void)
93643d
 _PUBLIC_ int
93643d
 authselect_apply_changes(void)
93643d
 {
93643d
-    struct authselect_profile *profile;
93643d
+    struct authselect_profile *profile = NULL;
93643d
     char **supported = NULL;
93643d
     char *profile_id;
93643d
     char **features;
93643d
-- 
93643d
2.31.1
93643d