diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2020-02-24 14:29:45 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2020-02-24 14:31:02 +0000 |
commit | b8dc537bf82637d223332a6fa2ab95064acd63ee (patch) | |
tree | 90961b557a0c7bd17750251b53a0c670b67621b2 /content/fetchers | |
parent | bb5d72410bf9a3a997ade1e8760b8f240d32af0d (diff) | |
download | netsurf-b8dc537bf82637d223332a6fa2ab95064acd63ee.tar.gz netsurf-b8dc537bf82637d223332a6fa2ab95064acd63ee.tar.bz2 |
Curl fetcher: Squash coverity warning.
CID 1419832: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "goto out;".
Diffstat (limited to 'content/fetchers')
-rw-r--r-- | content/fetchers/curl.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |