You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (not"sender"inmessage) or (notmessage["sender"].isdigit()) or (len(message["sender"]) !=16):
90
-
logger.error("Impossible condition, either you have discovered a bug in Coldwire, or the server is attempting to denial-of-service you. Skipping data message with no (or malformed) sender...")
91
-
92
-
if"sender"inmessage:
93
-
logger.debug("Impossible condition's sender is: %s", message["sender"])
90
+
if (not"sender"inmessage):
91
+
logger.error("Impossible condition, either you have discovered a bug in Coldwire, or the server is attempting to denial-of-service you. Skipping data message with no sender...")
92
+
continue
94
93
94
+
ifnotvalidate_identifier(message["sender"]):
95
+
logger.error("Impossible condition, either you have discovered a bug in Coldwire, or the server is attempting to denial-of-service you. Skipping data message with malformed sender identifier (%s)...", message["sender"])
0 commit comments