diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-28 08:09:03 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-28 08:09:03 +0000 |
commit | 75e3026a14339f3818fe57281979b7ee85399d43 (patch) | |
tree | ec56a26b6c553d120df76142a2b6241ac322b4c9 /ssl/s2_lib.c | |
parent | 0a3af9a4038045ba59bcf10a4f9e0b6bb5107cd8 (diff) |
Cleanse memory using the new OPENSSL_cleanse() function.
I've covered all the memset()s I felt safe modifying, but may have missed some.
Diffstat (limited to 'ssl/s2_lib.c')
-rw-r--r-- | ssl/s2_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s2_lib.c b/ssl/s2_lib.c index 096e38d316..910b9fe097 100644 --- a/ssl/s2_lib.c +++ b/ssl/s2_lib.c @@ -308,7 +308,7 @@ void ssl2_free(SSL *s) s2=s->s2; if (s2->rbuf != NULL) OPENSSL_free(s2->rbuf); if (s2->wbuf != NULL) OPENSSL_free(s2->wbuf); - memset(s2,0,sizeof *s2); + OPENSSL_cleanse(s2,sizeof *s2); OPENSSL_free(s2); s->s2=NULL; } |