From bc6a60dae563ec3c8842b26d1f30081ceb6a1171 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Mon, 25 Jul 2016 16:23:53 -0700 Subject: [PATCH] Fix bug in ipsec key rotation - which would leave a stale state behind at each key rotation. Signed-off-by: Alessandro Boch --- libnetwork/drivers/overlay/encryption.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/drivers/overlay/encryption.go b/libnetwork/drivers/overlay/encryption.go index 6a97149af0..1dbd63b677 100644 --- a/libnetwork/drivers/overlay/encryption.go +++ b/libnetwork/drivers/overlay/encryption.go @@ -488,7 +488,7 @@ func updateNodeKey(lIP, rIP net.IP, idxs []*spi, curKeys []*key, newIdx, priIdx, if delIdx != -1 { // -rSA0 - programSA(rIP, lIP, spis[delIdx], nil, reverse, false) + programSA(lIP, rIP, spis[delIdx], nil, reverse, false) } if newIdx > -1 {