summaryrefslogtreecommitdiff
path: root/source3/sam
diff options
context:
space:
mode:
Diffstat (limited to 'source3/sam')
-rw-r--r--source3/sam/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/sam/interface.c b/source3/sam/interface.c
index 8e4e0d114b..4f5e565d2e 100644
--- a/source3/sam/interface.c
+++ b/source3/sam/interface.c
@@ -140,7 +140,7 @@ static NTSTATUS make_backend_entry(SAM_BACKEND_ENTRY *backend_entry, char *sam_b
DEBUG(5,("makeing backend_entry for %s\n", backend_entry->module_name));
- if ((tmp = strchr(tmp_string, '|')) != NULL) {
+ if ((tmp = strrchr(tmp_string, '|')) != NULL) {
DEBUGADD(20,("a domain name has been specified\n"));
*tmp = 0;
backend_entry->domain_name = smb_xstrdup(tmp + 1);