mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
attempt avoiding false positives for session id
This commit is contained in:
parent
a946ca6555
commit
dcec4a4d17
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue