From d2804237d44893dc79456c03ad536298e46f6ddb Mon Sep 17 00:00:00 2001 From: Alex Holland Date: Fri, 15 Jun 2018 09:00:59 -0400 Subject: [PATCH] Fix bug in prefix length, typo (#529) --- Dockerfile | 2 +- lib/constraint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 780df5d80..c63ce039c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ # # docker build -t zmap_ubuntu -f Dockerfile . # -# * If you wisht to build a specific commit, use the ZMAP_COMMIT build argument. +# * If you wish to build a specific commit, use the ZMAP_COMMIT build argument. # # docker build -t zmap_ubuntu -f Dockerfile --build-arg ZMAP_COMMIT= . # diff --git a/lib/constraint.c b/lib/constraint.c index 617010b60..5a34b73d6 100644 --- a/lib/constraint.c +++ b/lib/constraint.c @@ -107,7 +107,7 @@ static void _convert_to_leaf(node_t *node) static void _set_recurse(node_t *node, uint32_t prefix, int len, value_t value) { assert(node); - assert(0 <= len && len <= 32); + assert(0 <= len && len <= 256); if (len == 0) { // We're at the end of the prefix; make this a leaf and set the