diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-04 09:46:26 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-04 12:22:01 +0100 |
commit | 5af57c7d9f084aa9312f57cef30f1ad6b297cd70 (patch) | |
tree | e3a19a40612ca8d3c9da5935c832850897fd452b | |
parent | 353c8b90b6eacb156d0987420a8bf211336a758d (diff) | |
download | gnutls-tmp-oss-fuzz-fixes2.tar.gz |
auth rsa: eliminated memory leak on pkcs-1 formatting attack pathtmp-oss-fuzz-fixes2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/auth/rsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/auth/rsa.c b/lib/auth/rsa.c index b54d415f6f..d212023ca0 100644 --- a/lib/auth/rsa.c +++ b/lib/auth/rsa.c @@ -195,6 +195,8 @@ proc_rsa_client_kx(gnutls_session_t session, uint8_t * data, * attack against pkcs-1 formating). */ _gnutls_debug_log("auth_rsa: Possible PKCS #1 format attack\n"); + gnutls_free(plaintext.data); + plaintext.data = NULL; use_rnd_key = 1; } else { /* If the secret was properly formatted, then |