s3:smbd/oplock_linux: don't overwrite private_data
authorStefan Metzmacher <metze@samba.org>
Fri, 10 Feb 2012 18:49:05 +0000 (19:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 10 Feb 2012 20:48:18 +0000 (21:48 +0100)
We set ctx->private_data = sconn a few lines above
and expect 'sconn' in the signal event handler.

Thanks to Christian Ambach <ambi@samba.org> for the
bug report.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Feb 10 21:48:18 CET 2012 on sn-devel-104

source3/smbd/oplock_linux.c

index f796e8c9b817be15d9dea98f20a0d29ea2b4bef1..190578e0ccb6d86cd9757344931f86a0597124ca 100644 (file)
@@ -228,8 +228,6 @@ struct kernel_oplocks *linux_init_kernel_oplocks(struct smbd_server_connection *
                return NULL;
        }
 
-       ctx->private_data = se;
-
        DEBUG(3,("Linux kernel oplocks enabled\n"));
 
        return ctx;