diff options
author | 2014-11-27 16:07:33 +0000 | |
---|---|---|
committer | 2014-11-27 16:07:33 +0000 | |
commit | 75fd0321854a56059e8a6a42bf28f1639497a3f0 (patch) | |
tree | a21467870855d25d909e3b5bd3488c349ec12684 /lib/libssl/src | |
parent | Avoid a NULL dereference in the DTLS client that can be triggered by a (diff) | |
download | wireguard-openbsd-75fd0321854a56059e8a6a42bf28f1639497a3f0.tar.xz wireguard-openbsd-75fd0321854a56059e8a6a42bf28f1639497a3f0.zip |
Avoid a double-free in an error path.
Reported by Felix Groebert of the Google Security Team.
ok beck@ miod@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/ssl/d1_srtp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/d1_srtp.c b/lib/libssl/src/ssl/d1_srtp.c index 14439647763..eeb19a61835 100644 --- a/lib/libssl/src/ssl/d1_srtp.c +++ b/lib/libssl/src/ssl/d1_srtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_srtp.c,v 1.9 2014/11/16 14:12:47 jsing Exp $ */ +/* $OpenBSD: d1_srtp.c,v 1.10 2014/11/27 16:07:33 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -355,7 +355,6 @@ ssl_parse_clienthello_use_srtp_ext(SSL *s, unsigned char *d, int len, int *al) SSLerr(SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT, SSL_R_BAD_SRTP_MKI_VALUE); *al = SSL_AD_DECODE_ERROR; - sk_SRTP_PROTECTION_PROFILE_free(clnt); goto done; } |