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:56 -0700 |
commit | 6a0ab0b2edca89da524b7dcf29994033f98c8552 (patch) | |
tree | 242883f0ab4f8a683fd3529a580843175cf27ae5 /xlators/protocol/server/src/server-protocol.c | |
parent | 4fa1211b0fa015b49e662b26327c306f42299bbb (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.c')
0 files changed, 0 insertions, 0 deletions