mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
iptaccount: fix being a no-op program
A PPC system has been observed where "char" is unsigned; with that, the getopt loop will never terminate because optchar != -1 could not happen.
This commit is contained in:
@@ -7,6 +7,7 @@ v2.2 (2013-03-07)
|
||||
=================
|
||||
Enhancements:
|
||||
- Support for Linux 3.9
|
||||
- iptaccount: fix entire program being erroneously optimized away on PPC
|
||||
|
||||
|
||||
v2.1 (2012-11-27)
|
||||
|
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
|
||||
struct ipt_ACCOUNT_context ctx;
|
||||
struct ipt_acc_handle_ip *entry;
|
||||
int i;
|
||||
char optchar;
|
||||
int optchar;
|
||||
bool doHandleUsage = false, doHandleFree = false, doTableNames = false;
|
||||
bool doFlush = false, doContinue = false, doCSV = false;
|
||||
|
||||
|
Reference in New Issue
Block a user