summaryrefslogtreecommitdiff
path: root/lib/auth/rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/auth/rsa.c')
-rw-r--r--lib/auth/rsa.c2
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