From: Ralph Boehme Date: Fri, 13 Dec 2019 15:51:16 +0000 (+0100) Subject: smbd: pass session info to count_dfs_links() X-Git-Tag: ldb-2.1.0~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a5aa6d0fdc6f6057a07e8421b71e40d0f845f9;p=thirdparty%2Fsamba.git smbd: pass session info to count_dfs_links() Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 2b7fe12e087..e12e018c2c5 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1541,7 +1541,9 @@ bool remove_msdfs_link(const struct junction_map *jucn, Return the number of DFS links at the root of this share. *********************************************************************/ -static size_t count_dfs_links(TALLOC_CTX *ctx, int snum) +static size_t count_dfs_links(TALLOC_CTX *ctx, + struct auth_session_info *session_info, + int snum) { TALLOC_CTX *frame = talloc_stackframe(); const struct loadparm_substitution *lp_sub = @@ -1814,7 +1816,7 @@ struct junction_map *enum_msdfs_links(TALLOC_CTX *ctx, for(i=0;i < sharecount;i++) { if(lp_msdfs_root(i)) { - jn_count += count_dfs_links(ctx, i); + jn_count += count_dfs_links(ctx, session_info, i); } } if (jn_count == 0) {