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
(cherry picked from commit f0bd8dbe37bd855669ad4cddff0a49bccfd9b64e)
| ... | ... |
@@ -320,7 +320,8 @@ function make_root_CA {
|
| 320 | 320 |
# |
| 321 | 321 |
# Uses global ``SSL_ENABLED_SERVICES`` |
| 322 | 322 |
function is_ssl_enabled_service {
|
| 323 |
- services=$@ |
|
| 323 |
+ local services=$@ |
|
| 324 |
+ local service="" |
|
| 324 | 325 |
for service in ${services}; do
|
| 325 | 326 |
[[ ,${SSL_ENABLED_SERVICES}, =~ ,${service}, ]] && return 0
|
| 326 | 327 |
done |