diff options
author | 2017-01-24 15:04:12 +0000 | |
---|---|---|
committer | 2017-01-24 15:04:12 +0000 | |
commit | 3a878bc42145d0d699f521d1467080adc952c0af (patch) | |
tree | 749dcd46daca012ad5115c8f7e47daedf9111cb3 /lib/libssl/ssl_lib.c | |
parent | sk_pop_free() checks for NULL so do not bother doing it from the callers. (diff) | |
download | wireguard-openbsd-3a878bc42145d0d699f521d1467080adc952c0af.tar.xz wireguard-openbsd-3a878bc42145d0d699f521d1467080adc952c0af.zip |
sk_free() checks for NULL so do not bother doing it from the callers.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r-- | lib/libssl/ssl_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index bdf6bc6ee38..3c69e66ee11 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.147 2017/01/24 14:57:31 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.148 2017/01/24 15:04:12 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -581,8 +581,7 @@ SSL_free(SSL *s) free(s->internal->alpn_client_proto_list); #ifndef OPENSSL_NO_SRTP - if (s->internal->srtp_profiles) - sk_SRTP_PROTECTION_PROFILE_free(s->internal->srtp_profiles); + sk_SRTP_PROTECTION_PROFILE_free(s->internal->srtp_profiles); #endif free(s->internal); |