]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
[COVERITY] Check for NULL return from dict_lookup() in e2fsck
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 19 Mar 2007 12:52:10 +0000 (08:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Mar 2007 12:52:10 +0000 (08:52 -0400)
commit538e654c25b7bc48d4dd86ebcc926585e530f0ef
treecfec9e8d9536c9d4d12af6c87b6eafe51bd77bf7
parentd2021de5cf94d7a55181004beee296b310901718
[COVERITY] Check for NULL return from dict_lookup() in e2fsck

The dict_lookup() function can potentially return a NULL dnode_t.  It is
not checked in two places in the clone_file() function.  Looks to be
safe to continue if n is NULL, so just print a warning message and
continue.

Coverity ID: 9: Null Returns

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/ChangeLog
e2fsck/pass1b.c