summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-17 13:49:59 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-04-17 13:49:59 +0000
commite74dd04ae73bf3f61873aea3856d24b318149aa8 (patch)
tree1be51f10e423cbbe9e49a79e0519138e36a1533c
parentfbb616532c8b84a90abc47ccab04af68306cbf9b (diff)
downloadgnutls_1_0_11.tar.gz
Corrected bug in TLS renegotiation.gnutls_1_0_11
-rw-r--r--NEWS1
-rw-r--r--lib/gnutls_str.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index be543c3803..d5a4368242 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
Version 1.0.11 (17/04/2004)
- Added gnutls_sign_algorithm_get_name() and gnutls_pk_algorithm_get_name()
+- Corrected bug in TLS renegotiation.
Version 1.0.10 (03/04/2004)
- Corrected bug in RSA parameters handling which could cause
diff --git a/lib/gnutls_str.c b/lib/gnutls_str.c
index 50e7486e53..a3dea228bb 100644
--- a/lib/gnutls_str.c
+++ b/lib/gnutls_str.c
@@ -87,7 +87,10 @@ void _gnutls_string_clear( gnutls_string* str)
{
if (str==NULL || str->data == NULL) return;
str->free_func( str->data);
- memset( str, 0, sizeof( gnutls_string));
+
+ str->data = NULL;
+ str->max_length = 0;
+ str->length = 0;
}
/* This one does not copy the string.