aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/websocket.c
diff options
context:
space:
mode:
authorIvan Nardi <nardi.ivan@gmail.com>2025-07-02 08:27:20 +0200
committerIvan Nardi <nardi.ivan@gmail.com>2025-07-02 08:28:11 +0200
commit81ca06b0c7528a3da65ab0c8fab0b0b88c2f859d (patch)
tree2ee9d5bb8cfd07e8e70b77d5841fa404cc5f5203 /src/lib/protocols/websocket.c
parent4eff2cdb9991eed51e7e00e4dcc2f5fa1955cf17 (diff)
websocket: `ndpi_set_detected_protocol()` should be called only onceHEADdev
Fix: b07a910dc
Diffstat (limited to 'src/lib/protocols/websocket.c')
-rw-r--r--src/lib/protocols/websocket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/protocols/websocket.c b/src/lib/protocols/websocket.c
index f100cce5d..fc8a89231 100644
--- a/src/lib/protocols/websocket.c
+++ b/src/lib/protocols/websocket.c
@@ -133,6 +133,7 @@ static void ndpi_search_websocket(struct ndpi_detection_module_struct *ndpi_stru
ndpi_set_risk(ndpi_struct, flow, NDPI_OBFUSCATED_TRAFFIC,
"Obfuscated SSH-in-HTTP-WebSocket traffic");
}
+ found = 1;
}
}
if (i == packet->parsed_lines)