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