s4/srvsvc: deactivate a "ntvfs_connect" with a wrong parameter
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 29 Sep 2009 09:49:50 +0000 (11:49 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 2 Oct 2009 13:33:40 +0000 (15:33 +0200)
In the srvsvc code for s4 (NTVFS module) there exists a call to "ntvfs_connect"
which is performed with a totally wrong argument. Since I'm not able to fix
this, I commented it out and added a "FIXME" comment.

source4/rpc_server/srvsvc/srvsvc_ntvfs.c

index f1cb35bdd8978339c3b5da7326d11263f30f90ce..15bd749ad1b2eee79eedca91775638363bbfa50a 100644 (file)
@@ -128,7 +128,9 @@ NTSTATUS srvsvc_create_ntvfs_context(struct dcesrv_call_state *dce_call,
        NT_STATUS_HAVE_NO_MEMORY(ntvfs_req);
 
        /* Invoke NTVFS connection hook */
        NT_STATUS_HAVE_NO_MEMORY(ntvfs_req);
 
        /* Invoke NTVFS connection hook */
-       status = ntvfs_connect(ntvfs_req, scfg->name);
+       /* FIXME: Here is the right parameter missing!
+         * status = ntvfs_connect(ntvfs_req, <TODO>); */
+       status = NT_STATUS_UNSUCCESSFUL; /* return this for now */
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("srvsvc_create_ntvfs_context: NTVFS ntvfs_connect() failed!\n"));
                return status;
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("srvsvc_create_ntvfs_context: NTVFS ntvfs_connect() failed!\n"));
                return status;