summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-02-23 09:41:03 -0800
committerJeremy Allison <jra@samba.org>2017-02-23 23:54:48 +0100
commit2e09407c5b992db0da5ca3a6d1f38341dc42d070 (patch)
tree675e18ed7fb810de966b3e926299d1df753a4e4a
parent08e03fa7f5fdc7f988fbbb26929e8c5727f36c2e (diff)
downloadsamba-2e09407c5b992db0da5ca3a6d1f38341dc42d070.tar.gz
s3:winbind: work around coverity false positive.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Feb 23 23:54:48 CET 2017 on sn-devel-144
-rw-r--r--source3/winbindd/winbindd_list_users.c2
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;