minor bugfix
diff --git a/extensions/ebt_ip.c b/extensions/ebt_ip.c
index 71d7f30..0deb3e0 100644
--- a/extensions/ebt_ip.c
+++ b/extensions/ebt_ip.c
@@ -155,7 +155,7 @@
    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 @@
 		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;