Skip to content
Snippets Groups Projects
Commit 2a7dfec6 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'hotfix/rekey' into 'master'

Fix rekey bug. You must send the new session id on confirmation, not the source ID

See merge request !256
parents 608f0a03 75d2992c
No related branches found
No related tags found
1 merge request!256Fix rekey bug. You must send the new session id on confirmation, not the source ID
......@@ -9,6 +9,7 @@ package keyExchange
import (
"fmt"
"github.com/cloudflare/circl/dh/sidh"
"github.com/golang/protobuf/proto"
"github.com/pkg/errors"
......@@ -106,7 +107,7 @@ func handleTrigger(sess *storage.Session, net interfaces.NetworkManager,
//Send the Confirmation Message
//build the payload
payload, err := proto.Marshal(&RekeyConfirm{
SessionID: session.GetSource().Marshal(),
SessionID: session.GetID().Marshal(),
})
//If the payload cannot be marshaled, panic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment