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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user