Update the work on ipfw tables, reduce diffs.
[ipfw.git] / dummynet / hashtable.c
index 517cec6..30c3b4c 100644 (file)
@@ -125,7 +125,7 @@ new_table_extract_obj(struct new_hash_table *h, const void *obj)
        i = h->hash(obj, h->table_size);
        for (o =  h->table_ptr[i]; o; o = o->next) {
                if (h->cmp(o->obj, obj) == 0)
-                       return obj;
+                       return o->obj;
        }
        return NULL;
 }