From fa12c318978281dc18c0d5d00a977e1b12436659 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 24 Jan 2017 15:04:12 +0000 Subject: sk_free() checks for NULL so do not bother doing it from the callers. --- src/lib/libssl/d1_srtp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl/d1_srtp.c') 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 @@ -/* $OpenBSD: d1_srtp.c,v 1.17 2017/01/23 06:45:30 beck Exp $ */ +/* $OpenBSD: d1_srtp.c,v 1.18 2017/01/24 15:04:12 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -371,8 +371,7 @@ ssl_parse_clienthello_use_srtp_ext(SSL *s, const unsigned char *d, int len, ret = 0; done: - if (clnt) - sk_SRTP_PROTECTION_PROFILE_free(clnt); + sk_SRTP_PROTECTION_PROFILE_free(clnt); return ret; } -- cgit v1.2.3-55-g6feb