- Retry for interfaces with unused ports if possible.

This commit is contained in:
W.C.A. Wijngaards 2020-11-12 13:36:37 +01:00
parent 48b40b305a
commit b891fe113c
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,7 @@
12 November 2020: Wouter
- Fix to connect() to UDP destinations, default turned on,
this lowers vulnerability to ICMP side channels.
- Retry for interfaces with unused ports if possible.
10 November 2020: Wouter
- Fix #341: fixing a possible memory leak.

View file

@ -1118,6 +1118,9 @@ select_ifport(struct outside_network* outnet, struct pending* pend,
if(1) {
/* if we connect() we cannot reuse fds for a port */
if(pif->inuse >= pif->avail_total) {
tries++;
if(tries < MAX_PORT_RETRY)
continue;
log_err("failed to find an open port, drop msg");
return 0;
}