diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-04-17 13:49:59 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-04-17 13:49:59 +0000 |
commit | e74dd04ae73bf3f61873aea3856d24b318149aa8 (patch) | |
tree | 1be51f10e423cbbe9e49a79e0519138e36a1533c | |
parent | fbb616532c8b84a90abc47ccab04af68306cbf9b (diff) | |
download | gnutls-e74dd04ae73bf3f61873aea3856d24b318149aa8.tar.gz |
Corrected bug in TLS renegotiation.gnutls_1_0_11
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | lib/gnutls_str.c | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -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. |