diff options
| author | jsing <> | 2017-01-24 15:04:12 +0000 |
|---|---|---|
| committer | jsing <> | 2017-01-24 15:04:12 +0000 |
| commit | a5881c323420e24efe94dede93a9f8fafc24b3b1 (patch) | |
| tree | fb6b6ff3ecbc97ee4bea29ec3959e5b5d8a7dc8f /src/lib/libssl/d1_srtp.c | |
| parent | 66e0d0ee54e4c4af19fda4ee640663c25db4ff98 (diff) | |
| download | openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.tar.gz openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.tar.bz2 openbsd-a5881c323420e24efe94dede93a9f8fafc24b3b1.zip | |
sk_free() checks for NULL so do not bother doing it from the callers.
Diffstat (limited to '')
| -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 | } |
