2002-02-01 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 1 Feb 2002 18:08:32 +0000 (18:08 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 1 Feb 2002 18:08:32 +0000 (18:08 +0000)
* sign.c (gpgsm_sign): Do not release certificate twice.

sm/ChangeLog
sm/sign.c

index 32fe1d9..703f8cd 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-01  Marcus Brinkmann  <marcus@g10code.de>
+
+       * sign.c (gpgsm_sign): Do not release certificate twice.
+
 2002-01-29  Werner Koch  <wk@gnupg.org>
 
        * call-agent.c (gpgsm_agent_havekey): New.
index 9b23e85..7f8e6ca 100644 (file)
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -375,10 +375,7 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp)
             sigval = NULL;
             rc = gpgsm_create_cms_signature (cert, md, algo, &sigval);
             if (rc)
-              {
-                ksba_cert_release (cert);
-                goto leave;
-              }
+             goto leave;
 
             err = ksba_cms_set_sig_val (cms, signer, sigval);
             xfree (sigval);