hmap: Fix bug in hmap_replace().
[sliver-openvswitch.git] / lib / hmap.h
index 1809a91..9808805 100644 (file)
@@ -190,6 +190,7 @@ hmap_replace(struct hmap *hmap,
     }
     *bucket = new;
     new->hash = old->hash;
+    new->next = old->next;
 }
 
 static inline struct hmap_node *