mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r15797: fixed a notify bug, where a notify_remove() is beyond the current max
depth
This commit is contained in:
parent
2e105a32c7
commit
2ebcfcc6da
@ -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 = ¬ify->array->depth[depth];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user