]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/patricia.c
merge
[irc/quakenet/newserv.git] / lib / patricia.c
index 972b45f623780934af5cd8d347e3ca674bafa849..441b09e6803b2af4097865bce530430cd6e7196f 100644 (file)
@@ -561,7 +561,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);