This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit fb2b1b1f5efa61b043d7ffafedcb752f181c09e2 Author: vuori <[email protected]> AuthorDate: Tue Sep 16 01:10:14 2025 +0300 header_rewrite: explicit check for TS_SUCCESS to avoid unexpected false. (#12509) (cherry picked from commit bbdd479aa3669b327021a6ee9e8c5755836cc0cb) (cherry picked from commit 6286786371ef56335ad4e4198e37efd9e128844e) --- plugins/header_rewrite/resources.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/header_rewrite/resources.cc b/plugins/header_rewrite/resources.cc index a7061f286b..3f84e0b83f 100644 --- a/plugins/header_rewrite/resources.cc +++ b/plugins/header_rewrite/resources.cc @@ -64,7 +64,7 @@ Resources::gather(const ResourceIDs ids, TSHttpHookID hook) // Read request headers to server if (ids & RSRC_SERVER_REQUEST_HEADERS) { Dbg(pi_dbg_ctl, "\tAdding TXN server request header buffers"); - if (!TSHttpTxnServerReqGet(txnp, &bufp, &hdr_loc)) { + if (TSHttpTxnServerReqGet(txnp, &bufp, &hdr_loc) != TS_SUCCESS) { Dbg(pi_dbg_ctl, "could not gather bufp/hdr_loc for request"); return; }
