summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-11-01 12:31:34 +0100
committerMichael Adam <obnox@samba.org>2010-11-01 12:21:30 +0000
commit53d19fac5f97ca234b75046602455653e2a0b2e7 (patch)
treede3d0bcb75a03d22202e98d2ebcf522f71a61a3c /source3
parent05d752473615404ab81d28423f6c78cf3de49777 (diff)
downloadsamba-53d19fac5f97ca234b75046602455653e2a0b2e7.tar.gz
samba-53d19fac5f97ca234b75046602455653e2a0b2e7.tar.bz2
samba-53d19fac5f97ca234b75046602455653e2a0b2e7.zip
s3:winbindd: fix query_user_list for users with NULL full_name
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_rpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 88b1996258..0b101e4744 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;
}