Browse Source

Fix bug in ipsec key rotation

- which would leave a stale state behind
  at each key rotation.

Signed-off-by: Alessandro Boch <aboch@docker.com>
Alessandro Boch 9 years ago
parent
commit
bc6a60dae5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/drivers/overlay/encryption.go

+ 1 - 1
libnetwork/drivers/overlay/encryption.go

@@ -488,7 +488,7 @@ func updateNodeKey(lIP, rIP net.IP, idxs []*spi, curKeys []*key, newIdx, priIdx,
 
 
 	if delIdx != -1 {
 	if delIdx != -1 {
 		// -rSA0
 		// -rSA0
-		programSA(rIP, lIP, spis[delIdx], nil, reverse, false)
+		programSA(lIP, rIP, spis[delIdx], nil, reverse, false)
 	}
 	}
 
 
 	if newIdx > -1 {
 	if newIdx > -1 {