diff options
author | Werner Koch <wk@gnupg.org> | 2001-12-20 14:24:49 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2001-12-20 14:24:49 +0100 |
commit | 3341f8a55d9ed68ba26a5bee68ea20c050c0c461 (patch) | |
tree | 034b2528cb0dcd5eb810585643673dba8a50c10a /kbx | |
parent | * keyformat.txt: New. (diff) | |
download | gnupg2-3341f8a55d9ed68ba26a5bee68ea20c050c0c461.tar.xz gnupg2-3341f8a55d9ed68ba26a5bee68ea20c050c0c461.zip |
* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
parenthesis of the serial number's S-exp.
Diffstat (limited to 'kbx')
-rw-r--r-- | kbx/ChangeLog | 5 | ||||
-rw-r--r-- | kbx/keybox-blob.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/kbx/ChangeLog b/kbx/ChangeLog index 3498c9d53..22448c1e6 100644 --- a/kbx/ChangeLog +++ b/kbx/ChangeLog @@ -1,3 +1,8 @@ +2001-12-20 Werner Koch <wk@gnupg.org> + + * keybox-blob.c (_keybox_create_x509_blob): Skip the leading + parenthesis of the serial number's S-exp. + 2001-12-18 Werner Koch <wk@gnupg.org> * Makefile.am (AM_CPPFLAGS): Add flags for libksba 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++; |