s3: Remove smbd_server_conn from change_notify_add_request
[nivanova/samba-autobuild/.git] / source3 / smbd / notify.c
index 202664fc9403608ad73873ef1fd66bf759e32f5e..e3c9fc72e6eece4238d506d9b4909c15567fe2b9 100644 (file)
@@ -235,7 +235,7 @@ NTSTATUS change_notify_add_request(struct smb_request *req,
 {
        struct notify_change_request *request = NULL;
        struct notify_mid_map *map = NULL;
-       struct smbd_server_connection *sconn = smbd_server_conn;
+       struct smbd_server_connection *sconn = req->sconn;
 
        DEBUG(10, ("change_notify_add_request: Adding request for %s: "
                   "max_param = %d\n", fsp_str_dbg(fsp), (int)max_param));