r2572: fixed two places where status is not initialised in the nbench backend
authorAndrew Tridgell <tridge@samba.org>
Fri, 24 Sep 2004 00:42:20 +0000 (00:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:06 +0000 (12:59 -0500)
(This used to be commit 4103392a597349890e0e7ea1c41d5b0ab3816853)

source4/ntvfs/nbench/vfs_nbench.c

index b88c65d5dbbf34c44416adb92598c76212685c57..eebf6f1dde5254ee40f819c5036fdd3a5ca6c26d 100644 (file)
@@ -110,7 +110,7 @@ static NTSTATUS nbench_connect(struct smbsrv_request *req, const char *sharename
 
        ntvfs_set_private(req->tcon, depth, private);
        
-       PASS_THRU(req->tcon, connect, (req, sharename, depth+1));
+       status = PASS_THRU(req->tcon, connect, (req, sharename, depth+1));
 
        return status;
 }
@@ -125,7 +125,7 @@ static NTSTATUS nbench_disconnect(struct smbsrv_tcon *tcon, int depth)
 
        close(private->log_fd);
 
-       PASS_THRU(tcon, disconnect, (tcon, depth+1));
+       status = PASS_THRU(tcon, disconnect, (tcon, depth+1));
 
        return status;
 }