s3: Remove smbd_server_conn from change_notify_add_request
authorVolker Lendecke <vl@samba.org>
Sat, 12 Jun 2010 10:43:11 +0000 (12:43 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 12 Jun 2010 13:42:55 +0000 (15:42 +0200)
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));