Avoid portlist lookup when port is already available

This commit is contained in:
dmiller 2024-02-26 23:10:51 +00:00
parent 1a4d41a6b7
commit e75a253d72
2 changed files with 6 additions and 1 deletions

View file

@ -206,6 +206,7 @@ class PortList {
int allowed_protocol, int allowed_state) const;
int setStateReason(u16 portno, u8 proto, reason_t reason, u8 ttl, const struct sockaddr_storage *ip_addr);
int setStateReason(Port *answer, reason_t reason, u8 ttl, const struct sockaddr_storage *ip_addr);
int numscriptresults; /* Total number of scripts which produced output */