s3: smbd: Use helper function msdfs_servicename_matches_connection() in dfs_redirect().
authorJeremy Allison <jra@samba.org>
Tue, 9 Aug 2022 17:58:24 +0000 (10:58 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2022 18:19:31 +0000 (18:19 +0000)
commita3c9eb7931cb4da0dd5bc5d600125979dd1a7df5
tree2d72a04babead577e7e0acb3b0eca0eb6135d847
parentc0a1d7c7a8a7f24890e60c7a371498949dec11c2
s3: smbd: Use helper function msdfs_servicename_matches_connection() in dfs_redirect().

Replaces ugly complex logic.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15144

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c