summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/cracknames.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-25 17:37:21 -0700
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-02 12:45:08 +0200
commitff9fc4e4e0dd4e6a7563449de07934a0056f088b (patch)
treefa18a27356bfaafea292ec15a4b7925edbfd7d92 /source4/dsdb/samdb/cracknames.c
parent984ea88156767776dc2ab0b7da84c9701c34f345 (diff)
downloadsamba-ff9fc4e4e0dd4e6a7563449de07934a0056f088b.tar.gz
samba-ff9fc4e4e0dd4e6a7563449de07934a0056f088b.tar.bz2
samba-ff9fc4e4e0dd4e6a7563449de07934a0056f088b.zip
s4:dsdb Fix crash from LDAP login of DOM\\
The issue here is that when we resolve DOM\\ into an NT4 name, we would not initilise the nt4_account output. Andrew Bartlett
Diffstat (limited to 'source4/dsdb/samdb/cracknames.c')
-rw-r--r--source4/dsdb/samdb/cracknames.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 723f51356a..8f7f481e2d 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -1288,11 +1288,9 @@ NTSTATUS crack_name_to_nt4_name(TALLOC_CTX *mem_ctx,
}
p[0] = '\0';
- if (p[1]) {
- *nt4_account = talloc_strdup(mem_ctx, &p[1]);
- if (*nt4_account == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
+ *nt4_account = talloc_strdup(mem_ctx, &p[1]);
+ if (*nt4_account == NULL) {
+ return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_OK;