[Bug 577] cannot set spi/reqid numbers higher than 0x7fffffff (policy match)

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Mon Feb 16 22:05:57 CET 2009


http://bugzilla.netfilter.org/show_bug.cgi?id=577





------- Comment #1 from chris at linuxinfotag.de  2009-02-16 22:05 -------
A internal bugzilla error just prevented me attaching a patch,
so I just paste it here.


diff -Nru iptables-1.4.2.orig/extensions/libipt_policy.c
iptables-1.4.2/extensions/libipt_policy.c
--- iptables-1.4.2.orig/extensions/libipt_policy.c      2008-10-08
18:31:58.000000000 +0200
+++ iptables-1.4.2/extensions/libipt_policy.c   2009-02-16 18:38:21.000000000
+0100
@@ -166,7 +166,7 @@

                e->match.reqid = 1;
                e->invert.reqid = invert;
-               e->reqid = strtol(argv[optind-1], NULL, 10);
+               e->reqid = strtoul(argv[optind-1], NULL, 10);
                break;
        case '5':
                if (e->match.spi)
@@ -175,7 +175,7 @@

                e->match.spi = 1;
                e->invert.spi = invert;
-               e->spi = strtol(argv[optind-1], NULL, 0x10);
+               e->spi = strtoul(argv[optind-1], NULL, 0x10);
                break;
        case '6':
                if (e->match.saddr)


-- 
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the netfilter-buglog mailing list