From f0bd8dbe37bd855669ad4cddff0a49bccfd9b64e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 23 Jul 2014 15:14:07 -0400 Subject: [PATCH] stop leaking service as a global var the tls code was leaking out $service as a global variable, which was causing all manner of confusing errors in grenade trying to use that variable name. All lower case vars should be localize. Change-Id: I74fa597f20ee7c714cab83490b42d874ea93db02 --- lib/tls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tls b/lib/tls index a84bb764ac..e58e513a60 100644 --- a/lib/tls +++ b/lib/tls @@ -323,7 +323,8 @@ function make_root_CA { # # Uses global ``SSL_ENABLED_SERVICES`` function is_ssl_enabled_service { - services=$@ + local services=$@ + local service="" for service in ${services}; do [[ ,${SSL_ENABLED_SERVICES}, =~ ,${service}, ]] && return 0 done