hmap: Fix bug in hmap_replace().
authorBen Pfaff <blp@nicira.com>
Tue, 3 Nov 2009 20:50:46 +0000 (12:50 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Nov 2009 23:01:02 +0000 (15:01 -0800)
commit9a757a721f675ceab5f0de2731c1de25f479f6c5
treeaf2c980baadafc2ff3fbea49b0e4414687cdc1af
parent44528c546359a95c57e8a0e4b3703c5086b15f24
hmap: Fix bug in hmap_replace().

When hmap_replace() replaces one hash table node by another, it must
ensure that any nodes following the old node also follow the new node,
by copying the "next" pointer from "old" to "new".
lib/hmap.h