From 3359cacedd6eb263f6b6e82cef8f689151217a7a Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 7 Aug 2026 23:39:41 +0100 Subject: [PATCH] CommonClient: Ignore invalid deathlink packets (#6376) --- CommonClient.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index 2da41f8360..febe5c40cf 100755 --- a/CommonClient.py +++ b/CommonClient.py @@ -1092,9 +1092,12 @@ async def process_server_cmd(ctx: CommonContext, args: dict): elif cmd == "Bounced": tags = args.get("tags", []) - # we can skip checking "DeathLink" in ctx.tags, as otherwise we wouldn't have been send this - if "DeathLink" in tags and ctx.last_death_link != args["data"]["time"]: - ctx.on_deathlink(args["data"]) + # we can skip checking "DeathLink" in ctx.tags, as otherwise we wouldn't have been sent this + if "DeathLink" in tags: + data = args.get("data", {}) + time = data.get("time") + if time is not None and ctx.last_death_link != time: + ctx.on_deathlink(args["data"]) elif cmd == "Retrieved": ctx.stored_data.update(args["keys"])