summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-10-16 00:00:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:29 -0500
commit4a942c592abf62baad19896ef42848db73c02e29 (patch)
treedf831b273557c8c09f5ea484093f5c8e08a9e28b /source3
parent7b9ef5e8409cdfba121a0520fd5e3b10467c20b4 (diff)
downloadsamba-4a942c592abf62baad19896ef42848db73c02e29.tar.gz
samba-4a942c592abf62baad19896ef42848db73c02e29.tar.bz2
samba-4a942c592abf62baad19896ef42848db73c02e29.zip
r19300: Fix null deref in debug statement.
Jeremy. (This used to be commit c55b9111f60debe4c5a7765273fc86ac3829f31c)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c
index 4cc4eac691..94e807356d 100644
--- a/source3/nsswitch/winbindd_user.c
+++ b/source3/nsswitch/winbindd_user.c
@@ -193,7 +193,7 @@ static void winbindd_getpwsid(struct winbindd_cli_state *state,
{
struct getpwsid_state *s;
- s = TALLOC_P(state->mem_ctx, struct getpwsid_state);
+ s = TALLOC_ZERO_P(state->mem_ctx, struct getpwsid_state);
if (s == NULL) {
DEBUG(0, ("talloc failed\n"));
goto error;
@@ -229,8 +229,8 @@ static void getpwsid_queryuser_recv(void *private_data, BOOL success,
talloc_get_type_abort(private_data, struct getpwsid_state);
if (!success) {
- DEBUG(5, ("Could not query user %s\\%s\n", s->domain->name,
- s->username));
+ DEBUG(5, ("Could not query user %s SID %s\n", s->domain->name,
+ sid_string_static(&s->user_sid)));
request_error(s->state);
return;
}