Blame SOURCES/0001-Fix-for-issue-found-by-Coverity.patch

572004
From 5da6d34e2659f915e830932fd366c635801ecd91 Mon Sep 17 00:00:00 2001
572004
From: Sumit Bose <sbose@redhat.com>
572004
Date: Mon, 12 Aug 2019 17:28:20 +0200
572004
Subject: [PATCH] Fix for issue found by Coverity
572004
572004
Related to https://gitlab.freedesktop.org/realmd/adcli/issues/3
572004
---
572004
 library/adenroll.c | 5 ++++-
572004
 1 file changed, 4 insertions(+), 1 deletion(-)
572004
572004
diff --git a/library/adenroll.c b/library/adenroll.c
572004
index 53cd812..524663a 100644
572004
--- a/library/adenroll.c
572004
+++ b/library/adenroll.c
572004
@@ -2681,7 +2681,10 @@ adcli_enroll_get_permitted_keytab_enctypes (adcli_enroll *enroll)
572004
 	for (c = 0; cur_enctypes[c] != 0; c++);
572004
 
572004
 	new_enctypes = calloc (c + 1, sizeof (krb5_enctype));
572004
-	return_val_if_fail (new_enctypes != NULL, NULL);
572004
+	if (new_enctypes == NULL) {
572004
+		krb5_free_enctypes (k5, permitted_enctypes);
572004
+		return NULL;
572004
+	}
572004
 
572004
 	n = 0;
572004
 	for (c = 0; cur_enctypes[c] != 0; c++) {
572004
-- 
572004
2.21.0
572004