tools/xenstore: fix hashtable_expand() zeroing new area
authorJuergen Gross <jgross@suse.com>
Fri, 21 Jan 2022 15:21:19 +0000 (16:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jan 2022 15:34:45 +0000 (15:34 +0000)
commitb977929d3646a390f1a7b4540fcd7a36aa59ff14
tree21c6e9133e22a5d79b9ce27bdc62d95a8711e12f
parent65e7c9410bda8262bb2d3a02cb51f011ba573c1b
tools/xenstore: fix hashtable_expand() zeroing new area

When realloc()ing the hashtable for expanding it, zero out all the new
bytes at the end of the table, not only one byte for each new element.

Fixes: 186f0e02a1c ("Added hashtable implementation")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/xenstore/hashtable.c