diff options
author | Michael Adam <obnox@samba.org> | 2010-11-01 12:31:34 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-11-01 12:21:30 +0000 |
commit | 53d19fac5f97ca234b75046602455653e2a0b2e7 (patch) | |
tree | de3d0bcb75a03d22202e98d2ebcf522f71a61a3c | |
parent | 05d752473615404ab81d28423f6c78cf3de49777 (diff) | |
download | samba-53d19fac5f97ca234b75046602455653e2a0b2e7.tar.gz samba-53d19fac5f97ca234b75046602455653e2a0b2e7.tar.xz samba-53d19fac5f97ca234b75046602455653e2a0b2e7.zip |
s3:winbindd: fix query_user_list for users with NULL full_name
-rw-r--r-- | source3/winbindd/winbindd_rpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |