diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-28 18:07:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-28 23:11:00 +0200 |
commit | 9ce7eee07042605045dcfd02a6f5b38ad5c8a05d (patch) | |
tree | 7a83474325c43f8d34233dae5bad509b2475ce74 /lib/vquic | |
parent | 31303c34e90949847860db82c4768cab1482beda (diff) | |
download | curl-9ce7eee07042605045dcfd02a6f5b38ad5c8a05d.tar.gz |
checksrc: find bad indentation in conditions without open brace
If the previous line starts with if/while/for AND ends with a closed
parenthesis and there's an equal number of open and closed parentheses
on that line, verify that this line is indented $indent more steps, if
not a cpp line.
Also adjust the fall-out from this fix.
Closes #11054
Diffstat (limited to 'lib/vquic')
-rw-r--r-- | lib/vquic/curl_msh3.c | 2 | ||||
-rw-r--r-- | lib/vquic/curl_ngtcp2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/vquic/curl_msh3.c b/lib/vquic/curl_msh3.c index 438a60d47..40e89379f 100644 --- a/lib/vquic/curl_msh3.c +++ b/lib/vquic/curl_msh3.c @@ -542,7 +542,7 @@ static ssize_t cf_msh3_recv(struct Curl_cfilter *cf, struct Curl_easy *data, if(nread < 0) goto out; if(stream->closed) - drain_stream(cf, data); + drain_stream(cf, data); } else if(stream->closed) { nread = recv_closed_stream(cf, data, err); diff --git a/lib/vquic/curl_ngtcp2.c b/lib/vquic/curl_ngtcp2.c index c76c67444..1ca1227b0 100644 --- a/lib/vquic/curl_ngtcp2.c +++ b/lib/vquic/curl_ngtcp2.c @@ -1710,7 +1710,7 @@ static CURLcode qng_verify_peer(struct Curl_cfilter *cf, Curl_conn_get_host(data, cf->sockindex, &hostname, &disp_hostname, &port); snihost = Curl_ssl_snihost(data, hostname, NULL); if(!snihost) - return CURLE_PEER_FAILED_VERIFICATION; + return CURLE_PEER_FAILED_VERIFICATION; cf->conn->bits.multiplex = TRUE; /* at least potentially multiplexed */ cf->conn->httpversion = 30; |