mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 13:54:35 +02:00
Initialize variable and unset at end
This commit is contained in:
parent
95b24f074f
commit
15e364eae6
@ -275,6 +275,7 @@
|
|||||||
Register --test-no SHLL-6290 --weight H --network NO --category security --description "Perform Shellshock vulnerability tests"
|
Register --test-no SHLL-6290 --weight H --network NO --category security --description "Perform Shellshock vulnerability tests"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FOUND=0
|
FOUND=0
|
||||||
|
x=""
|
||||||
#Display --indent 2 --text "- Testing for Shellshock vulnerability"
|
#Display --indent 2 --text "- Testing for Shellshock vulnerability"
|
||||||
LogText "Test: Check if bash is in the list of shells."
|
LogText "Test: Check if bash is in the list of shells."
|
||||||
if [ -f /etc/shells ]; then
|
if [ -f /etc/shells ]; then
|
||||||
@ -396,6 +397,7 @@
|
|||||||
else
|
else
|
||||||
AddHP 5 5
|
AddHP 5 5
|
||||||
fi
|
fi
|
||||||
|
unset x
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user