ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/patricia.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/patricia.c (file contents):
Revision 7807 by michael, Wed Oct 19 15:56:00 2016 UTC vs.
Revision 7808 by michael, Wed Oct 19 15:57:36 2016 UTC

# Line 922 | Line 922 | make_and_lookup (patricia_tree_t *tree,
922   patricia_node_t *
923   try_search_exact (patricia_tree_t *tree, char *string)
924   {
925 <    prefix_t *prefix;
926 <    patricia_node_t *node;
927 <
928 <    prefix = ascii2prefix (AF_INET, string);
929 <    printf ("try_search_exact: %s/%d\n", prefix_toa (prefix), prefix->bitlen);
930 <    if ((node = patricia_search_exact (tree, prefix)) == NULL) {
931 <        printf ("try_search_exact: not found\n");
932 <    }
933 <    else {
934 <        printf ("try_search_exact: %s/%d found\n",
935 <                prefix_toa (node->prefix), node->prefix->bitlen);
925 >    prefix_t *prefix = ascii2prefix (0, string);
926 >    if (prefix)
927 >    {
928 >      patricia_node_t *node = patricia_search_exact (tree, prefix);
929 >      Deref_Prefix (prefix);
930 >      return node;
931      }
937    Deref_Prefix (prefix);
938    return (node);
932   }
933  
934   void

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)