svn commit: samba r15797 - in
branches/SAMBA_4_0/source/ntvfs/common: .
tridge at samba.org
tridge at samba.org
Mon May 22 06:18:41 GMT 2006
Author: tridge
Date: 2006-05-22 06:18:40 +0000 (Mon, 22 May 2006)
New Revision: 15797
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15797
Log:
fixed a notify bug, where a notify_remove() is beyond the current max
depth
Modified:
branches/SAMBA_4_0/source/ntvfs/common/notify.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/notify.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/notify.c 2006-05-22 06:17:10 UTC (rev 15796)
+++ branches/SAMBA_4_0/source/ntvfs/common/notify.c 2006-05-22 06:18:40 UTC (rev 15797)
@@ -447,6 +447,11 @@
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];
More information about the samba-cvs
mailing list