[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_10-347-ged3ae74
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, master, updated. gnutls_2_9_10-347-ged3ae74 |
Date: |
Fri, 20 Aug 2010 17:42:19 +0000 |
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=ed3ae748ba6ee8b82e590f6d51d4b8473430c6de
The branch, master has been updated
via ed3ae748ba6ee8b82e590f6d51d4b8473430c6de (commit)
from 7826b79af04beba273a1ca15e74167281daa3575 (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 ed3ae748ba6ee8b82e590f6d51d4b8473430c6de
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Fri Aug 20 19:41:34 2010 +0200
prevent a memory leak in the unique_id functions.
-----------------------------------------------------------------------
Summary of changes:
lib/x509/x509.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index bb5e83f..7f95c32 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -3223,12 +3223,15 @@ gnutls_x509_crt_get_subject_unique_id
(gnutls_x509_crt_t crt, char *buf,
if (datum.size > *sizeof_buf) { /* then we're not going to fit */
*sizeof_buf = datum.size;
buf[0] = '\0';
- return GNUTLS_E_SHORT_MEMORY_BUFFER;
+ result = GNUTLS_E_SHORT_MEMORY_BUFFER;
} else {
*sizeof_buf = datum.size;
memcpy(buf, datum.data, datum.size);
- return result;
}
+
+ _gnutls_free_datum(&datum);
+
+ return result;
}
/**
@@ -3260,10 +3263,13 @@ gnutls_x509_crt_get_issuer_unique_id (gnutls_x509_crt_t
crt, char *buf,
if (datum.size > *sizeof_buf) { /* then we're not going to fit */
*sizeof_buf = datum.size;
buf[0] = '\0';
- return GNUTLS_E_SHORT_MEMORY_BUFFER;
+ result = GNUTLS_E_SHORT_MEMORY_BUFFER;
} else {
*sizeof_buf = datum.size;
memcpy(buf, datum.data, datum.size);
- return result;
}
+
+ _gnutls_free_datum(&datum);
+
+ return result;
}
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, master, updated. gnutls_2_9_10-347-ged3ae74,
Nikos Mavrogiannopoulos <=