aboutsummaryrefslogtreecommitdiffstats
path: root/dfs_server
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-07-09 21:20:13 +0100
committerVolker Lendecke <vl@samba.org>2015-07-10 20:35:47 +0200
commit46ea8b59282aae8537f42da099333ed076972c7d (patch)
treeb535f256bb7d0104a993d2031318ea0ba3f2dee2 /dfs_server
parentaeb4ba18012d71de350e99d9636a305f4817689c (diff)
downloadsamba-46ea8b59282aae8537f42da099333ed076972c7d.tar.gz
samba-46ea8b59282aae8537f42da099333ed076972c7d.tar.xz
samba-46ea8b59282aae8537f42da099333ed076972c7d.zip
dfs_server: Use multi-byte string handling
Pre-empt a bug with multi-byte DFS pathname handling by using strchr_m() Signed-off-by: Robin McCorkell <rmccorkell@karoshi.org.uk> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Jul 10 20:35:47 CEST 2015 on sn-devel-104
Diffstat (limited to 'dfs_server')
-rw-r--r--dfs_server/dfs_server_ad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dfs_server/dfs_server_ad.c b/dfs_server/dfs_server_ad.c
index cacad0bff17..3a25dff9d14 100644
--- a/dfs_server/dfs_server_ad.c
+++ b/dfs_server/dfs_server_ad.c
@@ -833,12 +833,12 @@ NTSTATUS dfs_server_ad_get_referrals(struct loadparm_context *lp_ctx,
server_name++;
}
- dfs_name = strchr(server_name, path_separator);
+ dfs_name = strchr_m(server_name, path_separator);
if (dfs_name != NULL) {
dfs_name[0] = '\0';
dfs_name++;
- link_path = strchr(dfs_name, path_separator);
+ link_path = strchr_m(dfs_name, path_separator);
if (link_path != NULL) {
link_path[0] = '\0';
link_path++;