s3:winbind: work around coverity false positive.
authorJeremy Allison <jra@samba.org>
Thu, 23 Feb 2017 17:41:03 +0000 (09:41 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 23 Feb 2017 22:54:48 +0000 (23:54 +0100)
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

source3/winbindd/winbindd_list_users.c

index 9a751a75c5bc6578b5f6fcbca62fb027641a77d0..fcbe8beff6f394aa34f96bfd5e96809f193df912 100644 (file)
@@ -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;