Whamcloud - gitweb
libsupport: fix (very potential) NULL dereference
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2018 02:53:00 +0000 (22:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2018 02:53:00 +0000 (22:53 -0400)
commit7faffcf0e007e166437194c4fc08c7c6aea53587
tree1356d7956d95e4db49b59cd0d0605da396a88bf8
parentf23a1b7f48ec471068de70a9124d46aaec6de6bb
libsupport: fix (very potential) NULL dereference

It's a very rare set of circumstances (requiring deleting profile
sections, which e2fsprogs doesn't do) that might trigger a NULL
derference, but fix it for robustness's sake, maybe some day someone
will use that functionality.

Fixes-Coverity-Bug: 207508
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/profile.c