tomcat vuln CVE-2024-56337 mitigation

I'm definitely seeing two 'set CATALINA_OPTS=' lines in catalina.bat but it's not clear which one is the significant one - which one should we be doing?


:doStop
shift
set ACTION=stop
set CATALINA_OPTS=
goto execCmd

:doConfigTest
shift
set ACTION=configtest
set CATALINA_OPTS=
goto execCmd