summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2011-03-04 14:53:39 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-03-04 16:33:53 +0100
commit9c342c44a46f883bfd633ea48b04a9bcca930ab6 (patch)
tree948564578e053cfbcbc1a59969280f59154242cc /source3/rpc_server
parent2b635949a210fd1d8d8906f5185581d566064888 (diff)
downloadsamba-9c342c44a46f883bfd633ea48b04a9bcca930ab6.tar.gz
samba-9c342c44a46f883bfd633ea48b04a9bcca930ab6.tar.bz2
samba-9c342c44a46f883bfd633ea48b04a9bcca930ab6.zip
s3: add two missing vfs disconnect calls
The fix for bug 7976 added a vfs connect call to create_conn_struct. This change adds two further disconnect calls that were missed by the original change. Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Mar 4 16:33:53 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srvsvc/srv_srvsvc_nt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
index 4bfe5bb164..f0a105e33e 100644
--- a/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srvsvc/srv_srvsvc_nt.c
@@ -2217,6 +2217,7 @@ WERROR _srvsvc_NetGetFileSecurity(struct pipes_struct *p,
close_file(NULL, fsp, NORMAL_CLOSE);
vfs_ChDir(conn, oldcwd);
+ SMB_VFS_DISCONNECT(conn);
conn_free(conn);
werr = WERR_OK;
goto done;
@@ -2361,6 +2362,7 @@ WERROR _srvsvc_NetSetFileSecurity(struct pipes_struct *p,
close_file(NULL, fsp, NORMAL_CLOSE);
vfs_ChDir(conn, oldcwd);
+ SMB_VFS_DISCONNECT(conn);
conn_free(conn);
werr = WERR_OK;
goto done;