]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Prefer "goto cleanup" over "do {... if (error) break; ... } while(0)"
authorYann Ylavic <ylavic@apache.org>
Wed, 10 Feb 2016 22:42:57 +0000 (22:42 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 10 Feb 2016 22:42:57 +0000 (22:42 +0000)
commit64f843d74b84465d21998a0bc1da608eb31057b4
treee2988b17effbc01d98c841033991a3ab699e7315
parent9fdf8cf405f954d66383f7d89cc90af8a110dd46
Prefer "goto cleanup" over "do {... if (error) break; ... } while(0)"
construction for error handling/jump (as suggested by Ruediger).

Hence we can move backend->close = 1 (for mod_proxy_wstunnel) and
proxy_run_detach_backend() (for mod_proxy_http2) in the cleanup fallback.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729749 13f79535-47bb-0310-9956-ffa450edef68
modules/http2/mod_proxy_http2.c
modules/proxy/mod_proxy_wstunnel.c