1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Reduce/cache calls to getStateCounts

This commit is contained in:
dmiller
2020-12-15 21:45:56 +00:00
parent 27b9a90f3e
commit 1566da56f8
4 changed files with 27 additions and 12 deletions

View File

@@ -676,7 +676,7 @@ void printportoutput(Target *currenths, PortList *plist) {
if (o.ipprotscan) {
current = NULL;
while ((current = plist->nextPort(current, &port, IPPROTO_IP, 0)) != NULL) {
if (!plist->isIgnoredState(current->state)) {
if (!plist->isIgnoredState(current->state, NULL)) {
if (!first)
log_write(LOG_MACHINE, ", ");
else
@@ -729,7 +729,7 @@ void printportoutput(Target *currenths, PortList *plist) {
current = NULL;
while ((current = plist->nextPort(current, &port, TCPANDUDPANDSCTP, 0)) != NULL) {
if (!plist->isIgnoredState(current->state)) {
if (!plist->isIgnoredState(current->state, NULL)) {
if (!first)
log_write(LOG_MACHINE, ", ");
else