Blame 0001-Fix-potential-use-of-uninitialized-pgp-struct.patch

Michal Domonkos e0ff81
diff -up rpm-4.16.1.3/lib/rpmts.c.orig rpm-4.16.1.3/lib/rpmts.c
Michal Domonkos e0ff81
--- rpm-4.16.1.3/lib/rpmts.c.orig	2024-07-11 13:55:35.430198126 +0200
Michal Domonkos e0ff81
+++ rpm-4.16.1.3/lib/rpmts.c	2024-07-11 13:55:59.243061182 +0200
Michal Domonkos e0ff81
@@ -482,6 +482,8 @@ static int makePubkeyHeader(rpmts ts, rp
Michal Domonkos e0ff81
     int rc = -1;
Michal Domonkos e0ff81
     int i;
Michal Domonkos e0ff81
 
Michal Domonkos e0ff81
+    memset(&kd, 0, sizeof(kd));
Michal Domonkos e0ff81
+
Michal Domonkos e0ff81
     if ((enc = rpmPubkeyBase64(key)) == NULL)
Michal Domonkos e0ff81
 	goto exit;
Michal Domonkos e0ff81
     if ((dig = rpmPubkeyDig(key)) == NULL)