diff options
author | Werner Koch <[email protected]> | 2001-12-20 13:24:49 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-12-20 13:24:49 +0000 |
commit | 3341f8a55d9ed68ba26a5bee68ea20c050c0c461 (patch) | |
tree | 034b2528cb0dcd5eb810585643673dba8a50c10a /kbx/keybox-blob.c | |
parent | * keyformat.txt: New. (diff) | |
download | gnupg-3341f8a55d9ed68ba26a5bee68ea20c050c0c461.tar.gz gnupg-3341f8a55d9ed68ba26a5bee68ea20c050c0c461.zip |
* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
parenthesis of the serial number's S-exp.
Diffstat (limited to 'kbx/keybox-blob.c')
-rw-r--r-- | kbx/keybox-blob.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kbx/keybox-blob.c b/kbx/keybox-blob.c index f3bc859b3..764372c01 100644 --- a/kbx/keybox-blob.c +++ b/kbx/keybox-blob.c @@ -824,8 +824,12 @@ _keybox_create_x509_blob (KEYBOXBLOB *r_blob, KsbaCert cert, size_t n; n = gcry_sexp_canon_len (p, 0, NULL, NULL); if (!n) - return KEYBOX_General_Error; + { + xfree (p); + return KEYBOX_General_Error; + } blob->serialbuf = p; + p++; for (; n && *p != ':'; n--, p++) ; p++; |