diff options
-rw-r--r-- | source3/winbindd/winbindd_list_users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_list_users.c b/source3/winbindd/winbindd_list_users.c index 9a751a75c5b..fcbe8beff6f 100644 --- a/source3/winbindd/winbindd_list_users.c +++ b/source3/winbindd/winbindd_list_users.c @@ -178,7 +178,7 @@ NTSTATUS winbindd_list_users_recv(struct tevent_req *req, response->length += len; response->data.num_entries = 0; - if (len >= 1) { + if (result != NULL && len >= 1) { len -= 1; response->data.num_entries = 1; |