[Rpm-maint] [rpm-software-management/rpm] Add Key Fingerprints to rpmsinfoMsg() (PR #3321)
Florian Festi
notifications at github.com
Tue Oct 1 14:21:46 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 */
Done. Not quite sure if the name is that great. Do we have a naming scheme for that? Just `_intern`? or `_internal`? or should I just keep `Prelocked`?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3321#discussion_r1782959616
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3321/review/2340523042 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241001/92596fbd/attachment.html>
More information about the Rpm-maint
mailing list