aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/security/check_for_nonssl_endpoints.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/security/check_for_nonssl_endpoints.sh b/test/security/check_for_nonssl_endpoints.sh
index 6056e0371..9e98520af 100755
--- a/test/security/check_for_nonssl_endpoints.sh
+++ b/test/security/check_for_nonssl_endpoints.sh
@@ -105,7 +105,7 @@ while IFS= read -r line; do
wl_port=$(echo $wl_line | awk {'print $2'})
if grep -e $wl_name.*$wl_port <<< "$line"; then
# Found in white list, exclude it
- sed -i "/$line/d" $FILTERED_PORTS_LIST
+ sed -i "/^$wl_name.*$wl_port/d" $FILTERED_PORTS_LIST
fi
done < $XF_RAW_FILE_PATH
done < $FILTERED_PORTS_LIST