Skip to content
Snippets Groups Projects
Commit 1aaf11da authored by Malte Bauch's avatar Malte Bauch
Browse files

Fixing wrong if clause

parent bac36979
Branches wg4
No related tags found
No related merge requests found
......@@ -229,7 +229,8 @@ func (ph *kmsPeer) TransportKeyNegotiation() error {
}
func (ph *kmsPeer) SendPayload(payload []byte, pathId uuid.UUID) error {
if len(ph.servingQLE.keyStorePeer.keyStore) == int(ph.servingQLE.keyStorePeer.indexCounter-1) {
if len(ph.servingQLE.keyStorePeer.keyStore) <= int(ph.servingQLE.keyStorePeer.indexCounter) {
log.Debug("Syncing bulk keys before sending the payload")
err := ph.SyncBulkKeys()
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment