diff --git a/keyExchange/confirm.go b/keyExchange/confirm.go index 01c43c5d42dd602fb314815d993b20ab7d16e401..b89b7c8dbeca6bcc7eaded004a301a511c332365 100644 --- a/keyExchange/confirm.go +++ b/keyExchange/confirm.go @@ -82,11 +82,11 @@ func unmarshalConfirm(payload []byte) (e2e.SessionID, error) { "unmarshal payload: %s", err) } - confimedSessionID := e2e.SessionID{} - if err := confimedSessionID.Unmarshal(msg.SessionID); err != nil { + confirmedSessionID := e2e.SessionID{} + if err := confirmedSessionID.Unmarshal(msg.SessionID); err != nil { return e2e.SessionID{}, errors.Errorf("Failed to unmarshal"+ " sessionID: %s", err) } - return confimedSessionID, nil + return confirmedSessionID, nil }