[Rpm-maint] [rpm-software-management/rpm] Add Key Fingerprints to rpmsinfoMsg() (PR #3321)
Florian Festi
notifications at github.com
Tue Oct 1 10:00:33 UTC 2024
@ffesti commented on this pull request.
>
/* Returned to C, can't use new */
subkeys = (rpmPubkey *)xmalloc(pgpsubkeysCount * sizeof(*subkeys));
- for (i = 0; i < pgpsubkeysCount; i++)
- subkeys[i] = rpmPubkeyNewSubkey(pgpsubkeys[i]);
+ for (i = 0; i < pgpsubkeysCount; i++) {
+ subkeys[i] = rpmPubkeyNewSubkey(primarykey, pgpsubkeys[i]);
+ primarykey->nrefs++; /* can't use rpmPubkeyLink due to wrlock */
Yeah, but this is a single ++ operator. Not sure if I want to wrap that into a function.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3321#discussion_r1782490029
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3321/review/2339738156 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241001/7a8d6ba0/attachment.html>
More information about the Rpm-maint
mailing list