summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-13 23:39:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-13 23:39:36 +0200
commit836626f1b0cad85d2e1c51380bcc9cae057f08ac (patch)
treec88ce4b8add99117220678d82be4c9fa967f71c5
parentdc4e7e8b4384d730d84a0004f96c4da69eb7b80f (diff)
downloadcurl-bagder/c-hyper-error.tar.gz
fixup a missing if(result)bagder/c-hyper-error
-rw-r--r--lib/c-hyper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c
index 1aba79f16..bc3f82135 100644
--- a/lib/c-hyper.c
+++ b/lib/c-hyper.c
@@ -967,7 +967,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
if(!h2) {
if(data->state.aptr.host) {
result = Curl_hyper_header(data, headers, data->state.aptr.host);
- goto error;
+ if(result)
+ goto error;
}
}
else {