summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}