strongswan: swanctl: make overtime local
authorKevin Locke <[email protected]>
Sat, 30 Nov 2024 21:28:31 +0000 (14:28 -0700)
committerPhilip Prindeville <[email protected]>
Sun, 27 Apr 2025 19:40:39 +0000 (13:40 -0600)
$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 <[email protected]>
net/strongswan/files/swanctl.init

index 637e146f69354bbbf6a7f72dfd032653974f6926..fb55a0b234e34534607e7c4f99065c01aa317ba4 100644 (file)
@@ -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