From dcec4a4d17e81f2429e8b1569ff7a092e5875637 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sun, 25 Dec 2022 12:55:52 +0100 Subject: [PATCH] attempt avoiding false positives for session id --- tnc/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tnc/helpers.py b/tnc/helpers.py index 962e4d28..6fff1e25 100644 --- a/tnc/helpers.py +++ b/tnc/helpers.py @@ -331,6 +331,8 @@ def check_session_id(id: bytes, id_to_check: bytes): True False """ + if id_to_check == b'\x00': + return False log.debug("[HLP] check_sessionid: Checking:", ownid=id, check=id_to_check) return id == id_to_check