diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-06-03 01:05:34 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-08 06:31:55 -0700 |
commit | 4c0b91a5a045e3f03a049320d26542ab9fec4745 (patch) | |
tree | fc99963edbcf4da8d3b07f1915f39cf6754fb385 /xlators/protocol/server/src/server-protocol.h | |
parent | 08d46effee3b5e07b89a3a04251714383cf02eec (diff) |
libglusterfs: Add empty and NULL dirents list checks
These checks are needed in case a higher layer intends to
delink the dirent list and passes a NULL pointer to
fop_readdir_cbk_stub for the entries parameter.
Consequently, the gf_dirent_free must guard against an empty list
because the stub that is passed to it mgiht have an empty
dirent list.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/protocol/server/src/server-protocol.h')
0 files changed, 0 insertions, 0 deletions