From 135b5e264f1e183994ca0ddca21574d2b2081bba Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 30 Sep 2020 13:51:54 +0100 Subject: [PATCH] Fix panic on verifySigError in fetching missing events --- federationapi/routing/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index f8b8bcd6f..d4bbe31c6 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -872,7 +872,7 @@ func (t *txnReq) lookupMissingStateViaStateIDs(ctx context.Context, roomID, even h, err = t.lookupEvent(ctx, roomVersion, missingEventID, false) switch err.(type) { case verifySigError: - break + return case nil: break default: