diff --git a/service_scan.cc b/service_scan.cc index 842e370e3..425b176b0 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -1186,7 +1186,7 @@ int AllProbes::check_excluded_port(unsigned short portno, int proto) if (global_AP == NULL) fatal("Failed to check the list of excluded ports: %s", __func__); - if (excluded = global_AP->isExcluded(portno, proto)) { + if ((excluded = global_AP->isExcluded(portno, proto))) { if (o.debugging) log_write(LOG_PLAIN, "EXCLUDING %d/%s\n", portno, IPPROTO2STR(proto));