From e7aa0272db48af438a6338e52c77cd506a5d93ac Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sat, 30 Nov 2024 14:28:31 -0700 Subject: [PATCH] strongswan: swanctl: make overtime local $overtime has been used since swanctl.init was added in f9d91f1f47. However, there's no need for it to be global. Make it local like the other config variables to avoid polluting the global namespace and make the code easier to reason about. Fixes: f9d91f1f470a ("strongswan: migrate to swanctl configs") Signed-off-by: Kevin Locke --- net/strongswan/files/swanctl.init | 1 + 1 file changed, 1 insertion(+) diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 637e146f6..fb55a0b23 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -459,6 +459,7 @@ config_remote() { local local_key local ca_cert local rekeytime + local overtime local send_cert local remote_ca_certs local pools