X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/8337392d1507b70c6e3e6c6523b6eb8a843a7395..b7a8b5277d37b289361ff0cc881632f527e4d5db:/decodekey.c?ds=sidebyside diff --git a/decodekey.c b/decodekey.c index 5b2092e..b4f7ceb 100644 --- a/decodekey.c +++ b/decodekey.c @@ -315,13 +315,13 @@ uint64_t *keysubkeys(struct openpgp_publickey *key) struct openpgp_signedpacket_list *cursubkey = NULL; uint64_t *subkeys = NULL; int count = 0; - + if (key != NULL && key->subkeys != NULL) { subkeys = malloc((spsize(key->subkeys) + 1) * sizeof (uint64_t)); cursubkey = key->subkeys; while (cursubkey != NULL) { - subkeys[count++] = get_packetid(cursubkey->packet); + get_packetid(cursubkey->packet, &subkeys[count++]); cursubkey = cursubkey -> next; } subkeys[count] = 0;