Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/dist/ssl fix a double free() in ...



details:   https://anonhg.NetBSD.org/src/rev/a776f353b7a8
branches:  trunk
changeset: 757006:a776f353b7a8
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Aug 10 11:01:00 2010 +0000

description:
fix a double free() in error case, see the thread
"openssl-1.0.0a and glibc detected sthg ;)" in openssl-dev.
I was getting a SEGV with the example posted there.

diffstat:

 crypto/external/bsd/openssl/dist/ssl/s3_clnt.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r e809e28b64a3 -r a776f353b7a8 crypto/external/bsd/openssl/dist/ssl/s3_clnt.c
--- a/crypto/external/bsd/openssl/dist/ssl/s3_clnt.c    Tue Aug 10 06:10:16 2010 +0000
+++ b/crypto/external/bsd/openssl/dist/ssl/s3_clnt.c    Tue Aug 10 11:01:00 2010 +0000
@@ -1489,6 +1489,7 @@
                s->session->sess_cert->peer_ecdh_tmp=ecdh;
                ecdh=NULL;
                BN_CTX_free(bn_ctx);
+               bn_ctx = NULL;
                EC_POINT_free(srvr_ecpoint);
                srvr_ecpoint = NULL;
                }



Home | Main Index | Thread Index | Old Index