diff options
author | 2016-03-11 07:08:44 +0000 | |
---|---|---|
committer | 2016-03-11 07:08:44 +0000 | |
commit | 0ce686e5e4c5919f4f3e73d9063f75b32e92aedb (patch) | |
tree | dfe711c755e7cf84eaa9cf9ec8f4dd0998c96641 /lib/libcrypto/x509/x509_vfy.c | |
parent | missing article in previous; (diff) | |
download | wireguard-openbsd-0ce686e5e4c5919f4f3e73d9063f75b32e92aedb.tar.xz wireguard-openbsd-0ce686e5e4c5919f4f3e73d9063f75b32e92aedb.zip |
X509_free(3) is NULL-safe, so remove NULL checks before its calls.
ok doug@
Diffstat (limited to 'lib/libcrypto/x509/x509_vfy.c')
-rw-r--r-- | lib/libcrypto/x509/x509_vfy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/x509/x509_vfy.c b/lib/libcrypto/x509/x509_vfy.c index c9950adb278..5c043aa7b18 100644 --- a/lib/libcrypto/x509/x509_vfy.c +++ b/lib/libcrypto/x509/x509_vfy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vfy.c,v 1.48 2015/12/14 03:38:13 beck Exp $ */ +/* $OpenBSD: x509_vfy.c,v 1.49 2016/03/11 07:08:45 mmcc Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -388,8 +388,7 @@ end: } if (sktmp != NULL) sk_X509_free(sktmp); - if (chain_ss != NULL) - X509_free(chain_ss); + X509_free(chain_ss); return ok; } |