]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - keyid.c
cscvs to tla changeset 39
[onak.git] / keyid.c
diff --git a/keyid.c b/keyid.c
index 8131e167f83a1d2b333f754980babcca972880d0..65a036328295328b1cc2b984b6e44011d6423728 100644 (file)
--- a/keyid.c
+++ b/keyid.c
@@ -26,6 +26,8 @@ uint64_t get_keyid(struct openpgp_publickey *publickey)
        unsigned char c;
        unsigned char *buff = NULL;
 
+       assert(publickey != NULL);
+
        switch (publickey->publickey->data[0]) {
        case 2:
        case 3: