]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Set pointer to NULL after ext2fs_free
authorLukas Czerner <lczerner@redhat.com>
Fri, 21 Feb 2014 01:54:29 +0000 (20:54 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Feb 2014 01:54:34 +0000 (20:54 -0500)
commit585bca68f89aa2a99e39f9234a10f825eb243589
tree4db3452e39b02e41530f018f440265ca90686966
parent5fe2bd60844cfe5d805e62a4316afaa5cd9d7c83
Set pointer to NULL after ext2fs_free

ext2fs_free() does not set the ext2_filsys pointer to null so the
caller is responsible to setting it himself if it is needed.

This patch fixes some places where caller did not set ext2_filsys
pointer to NULL after ext2fs_free() which might result in use after
free.  Fix it.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/openfs.c
resize/resize2fs.c