From 42d6f1b66ab352bc8e1be2d7a0d45970328c14a5 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Thu, 15 Sep 2022 13:16:15 -0700 Subject: [PATCH] Fix error checking of storage in auth confirm --- auth/confirm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/confirm.go b/auth/confirm.go index df3e8d367..0b7278c6e 100644 --- a/auth/confirm.go +++ b/auth/confirm.go @@ -132,7 +132,7 @@ func (s *state) confirm(partner contact.Contact, serviceTag string) ( /*send message*/ if err = s.store.StoreConfirmation(partner.ID, baseFmt.Marshal(), - mac, fp); err == nil { + mac, fp); err != nil { jww.WARN.Printf("Failed to store confirmation for replay "+ "for relationship between %s and %s, cannot be replayed: %+v", partner.ID, s.e2e.GetReceptionID(), err) -- GitLab