s3:winbindd: fix query_user_list for users with NULL full_name
authorMichael Adam <obnox@samba.org>
Mon, 1 Nov 2010 11:31:34 +0000 (12:31 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 1 Nov 2010 12:21:30 +0000 (12:21 +0000)
source3/winbindd/winbindd_rpc.c

index 88b19962582e329260931dcabe73b66894286d00..0b101e474469d9efae534fe9e57b7b729fe90ed7 100644 (file)
@@ -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;
                        }