You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2023/03/06 22:25:00 UTC

[trafficserver] branch 9.2.x updated: Fix parameter parser in ssl_hook_test plugin (#9453)

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

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new cb0cdb75e Fix parameter parser in ssl_hook_test plugin (#9453)
cb0cdb75e is described below

commit cb0cdb75e51f05491da9292d0b67e9e578a6120a
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Feb 27 12:39:55 2023 -0700

    Fix parameter parser in ssl_hook_test plugin (#9453)
    
    (cherry picked from commit c5dc657f3ab6e42c73f4612b256973cc567d9d10)
---
 tests/tools/plugins/ssl_hook_test.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/tools/plugins/ssl_hook_test.cc b/tests/tools/plugins/ssl_hook_test.cc
index 2adc1b4fc..1123a12e2 100644
--- a/tests/tools/plugins/ssl_hook_test.cc
+++ b/tests/tools/plugins/ssl_hook_test.cc
@@ -260,11 +260,11 @@ parse_callbacks(int argc, const char *argv[], int &preaccept_count, int &client_
         ptr = index(argv[i], '=');
         if (ptr) {
           if (strncmp(argv[i] + 1, "close", strlen("close")) == 0) {
-            close_count = atoi(ptr + i);
+            close_count = atoi(ptr + 1);
           } else if (strncmp(argv[i] + 1, "client_hello_imm", strlen("client_hello_imm")) == 0) {
-            client_hello_count_immediate = atoi(ptr + i);
+            client_hello_count_immediate = atoi(ptr + 1);
           } else if (strncmp(argv[i] + 1, "client_hello", strlen("client_hello")) == 0) {
-            client_hello_count = atoi(ptr + i);
+            client_hello_count = atoi(ptr + 1);
           } else {
             cert_count = atoi(ptr + 1);
           }