This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 0dce0e5ea8 Fix for CID-1523646. Invalid iterator. (#11878)
0dce0e5ea8 is described below

commit 0dce0e5ea889bc91269239a7b26aaeffc66de737
Author: Damian Meden <[email protected]>
AuthorDate: Mon Dec 2 11:32:51 2024 +0100

    Fix for CID-1523646. Invalid iterator. (#11878)
---
 src/proxy/http2/test_HPACK.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/proxy/http2/test_HPACK.cc b/src/proxy/http2/test_HPACK.cc
index 603eddb7d7..570bba1164 100644
--- a/src/proxy/http2/test_HPACK.cc
+++ b/src/proxy/http2/test_HPACK.cc
@@ -402,13 +402,13 @@ main(int argc, const char **argv)
 
   if (*cmd_input_dir) {
     input_dir = cmd_input_dir;
-    if (*input_dir.end() != '/') {
+    if (input_dir.back() != '/') {
       input_dir += '/';
     }
   }
   if (*cmd_output_dir) {
     output_dir = cmd_output_dir;
-    if (*output_dir.end() != '/') {
+    if (output_dir.back() != '/') {
       output_dir += '/';
     }
   }

Reply via email to