From c60517feb1d0a8421ce36d9e28cd3d9550245400 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Nov 2011 15:51:55 +0100 Subject: [PATCH] s3: Attempt to fix bug 8371 --- source3/winbindd/winbindd_rpc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index bf438a6..6d30344 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -93,7 +93,7 @@ NTSTATUS rpc_query_user_list(TALLOC_CTX *mem_ctx, info, struct wbint_userinfo, num_info); - if (info == NULL) { + if ((num_info != 0) && (info == NULL)) { return NT_STATUS_NO_MEMORY; } -- 1.7.0.4