]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libhandle: zap fdhash in fshandle_destroy
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 4 Jan 2018 19:58:29 +0000 (13:58 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 4 Jan 2018 19:58:29 +0000 (13:58 -0600)
commit1ad4d3babd3e832f2c638c68da00de9947fb116c
tree475ebd17a83ffe9ecb379716af3ac17c6b79d024
parent851c5d1133547fac332955f3ae9ba5a04d38abf6
libhandle: zap fdhash in fshandle_destroy

Set fdhash_head to zero once we've destroyed the handle list to avoid
dangling pointer problems.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libhandle/handle.c