]> jfr.im git - irc/quakenet/newserv.git/commitdiff
I think this should be bitlen not MAXBITS
authorPaul <redacted>
Tue, 12 Jun 2007 22:48:57 +0000 (22:48 +0000)
committerPaul <redacted>
Tue, 12 Jun 2007 22:48:57 +0000 (22:48 +0000)
lib/patricia.c

index 407436019a842f38e85f112fcb96252cb050f2c0..d3dfb223860e31e1ff49ace83286d0fab91becb5 100644 (file)
@@ -559,7 +559,7 @@ refnode(patricia_tree_t *tree, struct irc_in_addr *sin, int bitlen) {
   patricia_node_t *node;
   prefix_t *prefix;
 
-  node = patricia_search_exact(tree, sin, PATRICIA_MAXBITS);
+  node = patricia_search_exact(tree, sin, bitlen);
 
   if (node == NULL) {
     prefix = patricia_new_prefix(sin, bitlen);