diff options
author | Günther Deschner <gd@samba.org> | 2007-02-13 10:42:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:54 -0500 |
commit | 8e589ea7f20c92fa7c6d89bb373330e6189d22ea (patch) | |
tree | fe557c63b64cea588f220171dd3e559e8970c1d6 /source3/nsswitch/winbindd_async.c | |
parent | 949eb20a1ab73e5da068183e8b05b114206dd555 (diff) | |
download | samba-8e589ea7f20c92fa7c6d89bb373330e6189d22ea.tar.gz samba-8e589ea7f20c92fa7c6d89bb373330e6189d22ea.tar.bz2 samba-8e589ea7f20c92fa7c6d89bb373330e6189d22ea.zip |
r21308: Fix some typos and ensure to null terminate the correct strings.
Guenther
(This used to be commit 16c90f30b93f32c4f8fed00a6cc154c596e4244d)
Diffstat (limited to 'source3/nsswitch/winbindd_async.c')
-rw-r--r-- | source3/nsswitch/winbindd_async.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_async.c b/source3/nsswitch/winbindd_async.c index ee81b14f2f..1b357165e3 100644 --- a/source3/nsswitch/winbindd_async.c +++ b/source3/nsswitch/winbindd_async.c @@ -837,7 +837,7 @@ static void lookupname_recv(TALLOC_CTX *mem_ctx, BOOL success, char *name_domain, *name_account; if ( !root_domain ) { - DEBUG(5,("lookupname_recv: unable determine forest root\n")); + DEBUG(5,("lookupname_recv: unable to determine forest root\n")); cont(private_data, False, NULL, SID_NAME_UNKNOWN); return; } @@ -907,10 +907,10 @@ enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain, char *p; /* Ensure null termination */ - state->request.data.sid[sizeof(state->request.data.name.dom_name)-1]='\0'; + state->request.data.name.dom_name[sizeof(state->request.data.name.dom_name)-1]='\0'; /* Ensure null termination */ - state->request.data.sid[sizeof(state->request.data.name.name)-1]='\0'; + state->request.data.name.name[sizeof(state->request.data.name.name)-1]='\0'; /* cope with the name being a fully qualified name */ p = strstr(state->request.data.name.name, lp_winbind_separator()); @@ -926,7 +926,7 @@ enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain, DEBUG(3, ("[%5lu]: lookupname %s%s%s\n", (unsigned long)state->pid, name_domain, lp_winbind_separator(), name_user)); - /* Lookup name from PDC using lsa_lookup_names() */ + /* Lookup name from DC using lsa_lookup_names() */ if (!winbindd_lookup_sid_by_name(state->mem_ctx, domain, name_domain, name_user, &sid, &type)) { return WINBINDD_ERROR; |