You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by sh...@apache.org on 2019/06/25 20:00:00 UTC
[trafficserver] branch master updated: Fix options processing for
ja3_fingerprint plugin
This is an automated email from the ASF dual-hosted git repository.
shinrich 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 545a7a9 Fix options processing for ja3_fingerprint plugin
545a7a9 is described below
commit 545a7a9354e227bf4e2a82b793c5d124ffc2fc73
Author: Susan Hinrichs <sh...@oath.com>
AuthorDate: Thu Jun 20 21:19:22 2019 +0000
Fix options processing for ja3_fingerprint plugin
---
plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc b/plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc
index faca99e..6feb51c 100644
--- a/plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc
+++ b/plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc
@@ -380,8 +380,7 @@ req_hdr_ja3_handler(TSCont contp, TSEvent event, void *edata)
static bool
read_config_option(int argc, const char *argv[], int &raw, int &log)
{
- static const struct option longopts[] = {
- {"ja3raw", no_argument, &raw, 1}, {"ja3log", no_argument, &log, 1}, {nullptr, 0, nullptr, 0}};
+ const struct option longopts[] = {{"ja3raw", no_argument, &raw, 1}, {"ja3log", no_argument, &log, 1}, {nullptr, 0, nullptr, 0}};
int opt = 0;
while ((opt = getopt_long(argc, (char *const *)argv, "", longopts, nullptr)) >= 0) {