23 lines
762 B
Diff
23 lines
762 B
Diff
From be415f051a9e049469d884f6cf17bd1c3f217829 Mon Sep 17 00:00:00 2001
|
|
From: Dmitry Antipov <dantipov@cloudlinux.com>
|
|
Date: Mon, 5 Apr 2021 07:59:32 +0300
|
|
Subject: [PATCH] Fix check whether the subkey can be used for signing
|
|
|
|
---
|
|
libdnf/repo/Repo.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libdnf/repo/Repo.cpp b/libdnf/repo/Repo.cpp
|
|
index 97c84fa75..4934b4d90 100644
|
|
--- a/libdnf/repo/Repo.cpp
|
|
+++ b/libdnf/repo/Repo.cpp
|
|
@@ -726,7 +726,7 @@ static std::vector<Key> rawkey2infos(int fd) {
|
|
|
|
// _extract_signing_subkey
|
|
auto subkey = key->subkeys;
|
|
- while (subkey && !key->subkeys->can_sign) {
|
|
+ while (subkey && !subkey->can_sign) {
|
|
subkey = subkey->next;
|
|
}
|
|
if (subkey)
|