mirror of https://github.com/jrbrtsn/ban2fail
Added missing loop condition in iptables.c
This commit is contained in:
parent
41f9de69f1
commit
757fef9c9e
|
@ -92,7 +92,7 @@ struct Global G= {
|
|||
.version= {
|
||||
.major= 0,
|
||||
.minor= 14,
|
||||
.patch= 5
|
||||
.patch= 6
|
||||
},
|
||||
|
||||
.bitTuples.flags= GlobalFlagBitTuples
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue