Added missing loop condition in iptables.c

This commit is contained in:
john 2021-02-26 13:00:14 -05:00
parent 41f9de69f1
commit 757fef9c9e
2 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,7 @@ struct Global G= {
.version= {
.major= 0,
.minor= 14,
.patch= 5
.patch= 6
},
.bitTuples.flags= GlobalFlagBitTuples

View File

@ -342,6 +342,10 @@ _control_addresses(const char *cmdFlag, PTRVEC *h_vec)
/* See if there is another address */
addr= PTRVEC_remHead(h_vec);
/* Break out if nthing remains */
if(!addr && !naddr)
break;
/* Keep adding addresses until we bump up against iptables maximum,
* or run out of addresses
*/