Permalink
Browse files

Merge pull request #267 from dp111/patch-7

ebtables: Check port range correctly
  • Loading branch information...
RMerl committed Feb 11, 2019
2 parents 24be8ee + a7d3a96 commit cf9c38653f51147a8e093d36eaa27d8765a4d0fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 release/src/router/ebtables/extensions/ebt_ip.c
@@ -65,7 +65,7 @@ static uint16_t parse_port(const char *protocol, const char *name)
(service = getservbyname(name, protocol)) != NULL)
return ntohs(service->s_port);
}
else if (port >= 0 || port <= 0xFFFF) {
else if (port >= 0 && port <= 0xFFFF) {
return port;
}
ebt_print_error("Problem with specified %s port '%s'",

0 comments on commit cf9c386

Please sign in to comment.