[SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-10-g9c62f4f

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=9c62f4feb2bdd6fbbb06eb0c60bfdea80d21bbb8

The branch, master has been updated
       via  9c62f4feb2bdd6fbbb06eb0c60bfdea80d21bbb8 (commit)
      from  642e6b5ca996325dc0ca6401a3b87039408b2585 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9c62f4feb2bdd6fbbb06eb0c60bfdea80d21bbb8
Author: Nikos Mavrogiannopoulos <[email protected]>
Date:   Sun Feb 19 20:33:56 2012 +0100

    Deinitialize the correct number of certificates. Reported by Remi Gacogne.

-----------------------------------------------------------------------

Summary of changes:
 lib/auth/cert.c    |    1 +
 lib/gnutls_pcert.c |    9 +++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/auth/cert.c b/lib/auth/cert.c
index b2bfca8..7582c75 100644
--- a/lib/auth/cert.c
+++ b/lib/auth/cert.c
@@ -1172,6 +1172,7 @@ _gnutls_proc_x509_server_certificate (gnutls_session_t session,
       if (ret < 0)
         {
           gnutls_assert ();
+          peer_certificate_list_size = j;
           goto cleanup;
         }
 
diff --git a/lib/gnutls_pcert.c b/lib/gnutls_pcert.c
index 17e9c4f..1211e2d 100644
--- a/lib/gnutls_pcert.c
+++ b/lib/gnutls_pcert.c
@@ -89,6 +89,7 @@ size_t sz;
   if (ret < 0)
     {
       gnutls_pubkey_deinit(pcert->pubkey);
+      pcert->pubkey = NULL;
       ret = gnutls_assert_val(ret);
       goto cleanup;
     }
@@ -96,7 +97,7 @@ size_t sz;
   return 0;
 
 cleanup:
-  gnutls_free(pcert->cert.data);
+  _gnutls_free_datum(&pcert->cert);
 
   return ret;
 }
@@ -281,6 +282,7 @@ size_t sz;
   if (ret < 0)
     {
       gnutls_pubkey_deinit(pcert->pubkey);
+      pcert->pubkey = NULL;
       ret = gnutls_assert_val(ret);
       goto cleanup;
     }
@@ -288,7 +290,7 @@ size_t sz;
   return 0;
 
 cleanup:
-  gnutls_free(pcert->cert.data);
+  _gnutls_free_datum(&pcert->cert);
 
   return ret;
 }
@@ -373,8 +375,7 @@ gnutls_pcert_deinit (gnutls_pcert_st *pcert)
 {
   gnutls_pubkey_deinit(pcert->pubkey);
   pcert->pubkey = NULL;
-  gnutls_free(pcert->cert.data);
-  pcert->cert.data = NULL;
+  _gnutls_free_datum(&pcert->cert);
 }
 
 /* Converts the first certificate for the cert_auth_info structure


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.