]> git.puffer.fish Git - matthieu/frr.git/commit
lib: add doc to clear-up hash_iterate multi deletion
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 1 Sep 2020 20:02:12 +0000 (16:02 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:41:00 +0000 (12:41 -0400)
commit3509dd49c0b826b200b68e728ebb9707a91e3079
treeadd7a4ed488657672263933186e1c55350d383d6
parent8f830b8c64622099d4a6d3cc12dbc2f8009b45e2
lib: add doc to clear-up hash_iterate multi deletion

Add some header documentation to make it clear that you
cannot delete more than one item during each iteration.
Doing so could cause memory corruption for next pointer
if its also deleted from the table.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/hash.h