Cosmetics: Fix static analysis warnings

This commit is contained in:
Felipe Zimmerle
2015-10-27 10:54:57 -03:00
parent 11a1045f47
commit 7afc07914f
14 changed files with 39 additions and 30 deletions

View File

@@ -30,19 +30,15 @@ bool DetectXSS::evaluate(Assay *assay, const std::string &input) {
is_xss = libinjection_xss(input.c_str(), input.length());
if (is_xss) {
if (assay) {
if (assay) {
#ifndef NO_LOGS
if (is_xss) {
assay->debug(5, "detected XSS using libinjection.");
#endif
}
} else {
if (assay) {
#ifndef NO_LOGS
} else {
assay->debug(9, "libinjection was not able to " \
"find any XSS in: " + input);
#endif
}
#endif
}
if (negation) {