diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2002-06-25 15:43:57 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2002-06-25 15:43:57 +0000 |
commit | db9a8c2574eac8f3490d534c88e127262b761d17 (patch) | |
tree | c5feae318e0fa02fdd4abed6be903bc286159b8f /userspace/ebtables2/extensions | |
parent | cdd24403ae427aa8be05b6dbec5b38e58feb3934 (diff) |
minor bugfix
Diffstat (limited to 'userspace/ebtables2/extensions')
-rw-r--r-- | userspace/ebtables2/extensions/ebt_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userspace/ebtables2/extensions/ebt_ip.c b/userspace/ebtables2/extensions/ebt_ip.c index 71d7f30..0deb3e0 100644 --- a/userspace/ebtables2/extensions/ebt_ip.c +++ b/userspace/ebtables2/extensions/ebt_ip.c @@ -155,7 +155,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, unsigned int *flags, struct ebt_entry_match **match) { struct ebt_ip_info *ipinfo = (struct ebt_ip_info *)(*match)->data; - char *end, *buffer; + char *end; int i; switch (c) { @@ -193,7 +193,7 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, if (optind > argc) print_error("Missing ip tos argument"); i = strtol(argv[optind - 1], &end, 16); - if (i < 0 || i > 255 || *buffer != '\0') + if (i < 0 || i > 255 || *end != '\0') print_error("Problem with specified ip tos"); ipinfo->tos = i; ipinfo->bitmask |= EBT_IP_TOS; |