]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Fix crash when removing entries during hash iteration
authorJiri Denemark <jdenemar@redhat.com>
Tue, 12 Apr 2011 15:58:22 +0000 (17:58 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 12 Apr 2011 17:18:08 +0000 (19:18 +0200)
commit5c53160a2f7c64ce94a3bc1e964ab71ffb2e2c23
tree0c51fa78125c6713f9c4efac517e7d1455a6116f
parent50e4b9195d2d8b46969940336b44221b500a2de3
util: Fix crash when removing entries during hash iteration

Commit 9677cd33eea4c65d78ba463b46b8b45ed2da1709 made it possible to
remove current entry when iterating through all hash entries. However,
it didn't properly handle a special case of removing first entry
assigned to a given key which contains several entries in its collision
list.
src/util/hash.c