X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/010b333715b8385c78c4bacaf9031e9faed42cfd..ad30ce51bf609c35cd99a9ca46dd859b17d8164a:/decodekey.c?ds=inline diff --git a/decodekey.c b/decodekey.c index 5818488..efffad7 100644 --- a/decodekey.c +++ b/decodekey.c @@ -4,11 +4,8 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: decodekey.c,v 1.6 2004/05/27 03:24:01 noodles Exp $ */ -#include #include #include #include @@ -37,7 +34,7 @@ int parse_subpackets(unsigned char *data, uint64_t *keyid) int length = 0; int packetlen = 0; - assert(data != NULL); + log_assert(data != NULL); length = (data[0] << 8) + data[1] + 2; @@ -271,7 +268,7 @@ uint64_t *keysubkeys(struct openpgp_publickey *key) subkeys[count++] = get_packetid(cursubkey->packet); cursubkey = cursubkey -> next; } - subkeys[count] = NULL; + subkeys[count] = 0; } return subkeys;