summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index a78fa2921f..79e935d5d2 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -697,11 +697,11 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
/* Any error exit after here needs to call the disconnect hook. */
on_err_call_dis_hook = true;
- if ((!conn->printer) && (!conn->ipc)) {
+ if ((!conn->printer) && (!conn->ipc) &&
+ lp_change_notify(conn->params)) {
conn->notify_ctx = notify_init(conn,
sconn->msg_ctx,
- sconn->ev_ctx,
- conn);
+ sconn->ev_ctx);
}
/*