Skip to content
Snippets Groups Projects
Commit 0583d19d authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

moved a status change in rekey to the proper location

parent 5dbb1758
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,6 @@ func trigger(instance *network.Instance, sendE2E interfaces.SendE2E, ...@@ -67,7 +67,6 @@ func trigger(instance *network.Instance, sendE2E interfaces.SendE2E,
if err != nil { if err != nil {
jww.ERROR.Printf("Failed to do Key Negotiation with " + jww.ERROR.Printf("Failed to do Key Negotiation with " +
"session %s: %s", session, err) "session %s: %s", session, err)
negotiatingSession.SetNegotiationStatus(e2e.Unconfirmed)
} }
} }
...@@ -129,6 +128,7 @@ func negotiate(instance *network.Instance, sendE2E interfaces.SendE2E, ...@@ -129,6 +128,7 @@ func negotiate(instance *network.Instance, sendE2E interfaces.SendE2E,
// transmit, the partner cannot read the result. Log the error and set // transmit, the partner cannot read the result. Log the error and set
// the session as unconfirmed so it will re-trigger the negotiation // the session as unconfirmed so it will re-trigger the negotiation
if !success { if !success {
session.SetNegotiationStatus(e2e.Unconfirmed)
return errors.Errorf("Key Negotiation for %s failed to "+ return errors.Errorf("Key Negotiation for %s failed to "+
"transmit %v/%v paritions: %v round failures, %v timeouts", "transmit %v/%v paritions: %v round failures, %v timeouts",
session, numRoundFail+numTimeOut, len(rounds), numRoundFail, session, numRoundFail+numTimeOut, len(rounds), numRoundFail,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment