From b8dc537bf82637d223332a6fa2ab95064acd63ee Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 24 Feb 2020 14:29:45 +0000 Subject: Curl fetcher: Squash coverity warning. CID 1419832: Control flow issues (DEADCODE) >>> Execution cannot reach this statement: "goto out;". --- content/fetchers/curl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content/fetchers') diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 39759cf32..bd8c4333c 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -161,9 +161,8 @@ curl_fetch_ssl_key_eq(void *key1, void *key2) if (port2 == NULL) port2 = lwc_string_ref(corestring_lwc_443); - if (lwc_string_isequal(hostname1, hostname2, &iseq) != lwc_error_ok) - goto out; - if (!iseq) + if (lwc_string_isequal(hostname1, hostname2, &iseq) != lwc_error_ok || + iseq == false) goto out; iseq = false; -- cgit v1.2.3