Commit 83f221b9 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Prevent double session cancellation on invalid client responses

parent 4ec0aa84
......@@ -58,7 +58,6 @@ func (session *session) handlePostSignature(signature *irma.SignedMessage) (*irm
if err == nil {
session.setStatus(server.StatusDone)
} else {
session.setStatus(server.StatusCancelled)
if err == irma.ErrorMissingPublicKey {
rerr = session.fail(server.ErrorUnknownPublicKey, err.Error())
} else {
......@@ -81,7 +80,6 @@ func (session *session) handlePostDisclosure(disclosure irma.Disclosure) (*irma.
if err == nil {
session.setStatus(server.StatusDone)
} else {
session.setStatus(server.StatusCancelled)
if err == irma.ErrorMissingPublicKey {
rerr = session.fail(server.ErrorUnknownPublicKey, err.Error())
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment