From 4a942c592abf62baad19896ef42848db73c02e29 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 16 Oct 2006 00:00:32 +0000 Subject: r19300: Fix null deref in debug statement. Jeremy. (This used to be commit c55b9111f60debe4c5a7765273fc86ac3829f31c) --- source3/nsswitch/winbindd_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nsswitch/winbindd_user.c') 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; } -- cgit