Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-30 17:41:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-30 17:41:57 +0300
commit15e364eae614767a0b174e43065d7516e09d344f (patch)
treed8dbc1a9e42b07985414b6a0fdaf9317a7047e21 /include/tests_shells
parent95b24f074f8f06e358d429c774411555daf35113 (diff)
Initialize variable and unset at end
Diffstat (limited to 'include/tests_shells')
-rw-r--r--include/tests_shells2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tests_shells b/include/tests_shells
index 2fd5eeaf..ad2e4983 100644
--- a/include/tests_shells
+++ b/include/tests_shells
@@ -275,6 +275,7 @@
Register --test-no SHLL-6290 --weight H --network NO --category security --description "Perform Shellshock vulnerability tests"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
+ x=""
#Display --indent 2 --text "- Testing for Shellshock vulnerability"
LogText "Test: Check if bash is in the list of shells."
if [ -f /etc/shells ]; then
@@ -396,6 +397,7 @@
else
AddHP 5 5
fi
+ unset x
fi
#
#################################################################################