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/d1_srtp.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/d1_srtp.c')
-rw-r--r-- | src/lib/libssl/d1_srtp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c index 98bb24b4fe..a9f45a2d9a 100644 --- a/src/lib/libssl/d1_srtp.c +++ b/src/lib/libssl/d1_srtp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_srtp.c,v 1.17 2017/01/23 06:45:30 beck Exp $ */ | 1 | /* $OpenBSD: d1_srtp.c,v 1.18 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 | * |
@@ -371,8 +371,7 @@ ssl_parse_clienthello_use_srtp_ext(SSL *s, const unsigned char *d, int len, | |||
371 | ret = 0; | 371 | ret = 0; |
372 | 372 | ||
373 | done: | 373 | done: |
374 | if (clnt) | 374 | sk_SRTP_PROTECTION_PROFILE_free(clnt); |
375 | sk_SRTP_PROTECTION_PROFILE_free(clnt); | ||
376 | 375 | ||
377 | return ret; | 376 | return ret; |
378 | } | 377 | } |