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

Add missing braces. Fixes #2679

This commit is contained in:
dmiller
2023-07-20 16:21:23 +00:00
parent 6a6ac5cc75
commit edad9c059c

View File

@@ -496,9 +496,10 @@ void gettoppts(double level, const char *portlist, struct scan_lists * ports, co
if (sctpmax && strcmp(current->s_proto, "sctp") == 0 if (sctpmax && strcmp(current->s_proto, "sctp") == 0
&& (!ptsdata_initialized || && (!ptsdata_initialized ||
is_port_member(ptsdata.sctp_ports, ptsdata.sctp_count, current)) is_port_member(ptsdata.sctp_ports, ptsdata.sctp_count, current))
) ) {
ports->sctp_ports[ports->sctp_count++] = current->s_port; ports->sctp_ports[ports->sctp_count++] = current->s_port;
sctpmax--; sctpmax--;
}
break; break;
default: default:
break; break;