From 53d19fac5f97ca234b75046602455653e2a0b2e7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 1 Nov 2010 12:31:34 +0100 Subject: [PATCH] s3:winbindd: fix query_user_list for users with NULL full_name --- source3/winbindd/winbindd_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index 88b19962582..0b101e47446 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -109,7 +109,9 @@ NTSTATUS rpc_query_user_list(TALLOC_CTX *mem_ctx, } dst->full_name = talloc_strdup(info, src->full_name.string); - if (dst->full_name == NULL) { + if ((src->full_name.string != NULL) && + (dst->full_name == NULL)) + { return NT_STATUS_NO_MEMORY; } -- 2.11.4.GIT