From 8a75d3d91e90cc0cf617f06c63660d354684a60b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Mar 2012 14:45:21 +0100 Subject: s3: Replace a SMB_ASSERT with an error return --- source3/smbd/notify.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 8160d5ac63..4357af412e 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -181,7 +181,11 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32 filter, struct notify_entry e; NTSTATUS status; - SMB_ASSERT(fsp->notify == NULL); + if (fsp->notify != NULL) { + DEBUG(1, ("change_notify_create: fsp->notify != NULL, " + "fname = %s\n", fsp->fsp_name->base_name)); + return NT_STATUS_INVALID_PARAMETER; + } if (!(fsp->notify = talloc_zero(NULL, struct notify_change_buf))) { DEBUG(0, ("talloc failed\n")); -- cgit