diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-11-15 17:57:06 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-11-15 17:57:06 +0200 |
commit | 88eba89c793da85f57c599a599f0df25966ab989 (patch) | |
tree | c1a47ad07e6af8ffdae646b6431b1588cbaba1a1 /lib | |
parent | e48ec52c3cdd50dccf4f5a3e4143c3c8f8a282e6 (diff) | |
download | gnutls-88eba89c793da85f57c599a599f0df25966ab989.tar.gz |
Corrected memory leak in _gnutls_free_auth_info(). Trace and patch by Michael Weiser.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_auth.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gnutls_auth.c b/lib/gnutls_auth.c index cfd9138bd1..90da504819 100644 --- a/lib/gnutls_auth.c +++ b/lib/gnutls_auth.c @@ -317,6 +317,17 @@ _gnutls_free_auth_info (gnutls_session_t session) _gnutls_free_dh_info (dh_info); } break; + case GNUTLS_CRD_PSK: + { + psk_auth_info_t info = _gnutls_get_auth_info (session); + + if (info == NULL) + break; + + dh_info = &info->dh; + _gnutls_free_dh_info (dh_info); + } + break; case GNUTLS_CRD_CERTIFICATE: { unsigned int i; |