mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3: mdssvc: Correctly disconnect the VFS connection inside the mds_ctx destructor.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14809 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit b4d8c62c4e8191e05fd03dd096a0bc989e224ed3)
This commit is contained in:
parent
446f89510f
commit
b00fed3b69
@ -1568,6 +1568,11 @@ static int mds_ctx_destructor_cb(struct mds_ctx *mds_ctx)
|
||||
}
|
||||
TALLOC_FREE(mds_ctx->ino_path_map);
|
||||
|
||||
if (mds_ctx->conn != NULL) {
|
||||
SMB_VFS_DISCONNECT(mds_ctx->conn);
|
||||
conn_free(mds_ctx->conn);
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(mds_ctx);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user