mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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
This commit is contained in:
parent
2b635949a2
commit
9c342c44a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user