1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r15797: fixed a notify bug, where a notify_remove() is beyond the current max

depth
This commit is contained in:
Andrew Tridgell 2006-05-22 06:18:40 +00:00 committed by Gerald (Jerry) Carter
parent 2e105a32c7
commit 2ebcfcc6da

View File

@ -447,6 +447,11 @@ NTSTATUS notify_remove(struct notify_context *notify, void *private)
return status;
}
if (depth >= notify->array->num_depths) {
notify_unlock(notify);
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
/* we only have to search at the depth of this element */
d = &notify->array->depth[depth];