summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-12-30 11:08:22 +0000
committerVolker Lendecke <vl@samba.org>2017-01-02 18:04:13 +0100
commit2481584b8b5c6d0b742fb9b5cc5e72223a80028b (patch)
tree9fa4b28788a7c217825f5255c1813566b1ddcea9
parent7c3ea9fe96336483752adb821f8062a883d52998 (diff)
downloadsamba-2481584b8b5c6d0b742fb9b5cc5e72223a80028b.tar.gz
winbind: Initialize user list info to 0
Further down wbint_userinfo will be extended. Make sure we don't have uninitialized memory hanging around Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/winbindd/winbindd_rpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 7b355bafe91..cd6174a9814 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -109,6 +109,8 @@ NTSTATUS rpc_query_user_list(TALLOC_CTX *mem_ctx,
src = &(disp_info.info1.entries[j]);
dst = &(info[i]);
+ *dst = (struct wbint_userinfo) {0};
+
dst->acct_name = talloc_strdup(info,
src->account_name.string);
if (dst->acct_name == NULL) {