dsdb: Fix CID 1034966 Uninitialized scalar variable
commitc62c1c93f5712e7c3590eb9b9df9573300bd229a
authorVolker Lendecke <vl@samba.org>
Wed, 28 Mar 2018 20:43:53 +0000 (28 15:43 -0500)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Apr 2018 07:38:08 +0000 (10 09:38 +0200)
tree81d1f36c0074ef490e2b0e4a1a6e224938105756
parent119c28bba77f258f3d2912b9524884b369200b2d
dsdb: Fix CID 1034966 Uninitialized scalar variable

"continue" in a do-while loop jumps to the "while"-check, so "id_exists" needs
to be initialized by that point.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13367

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 925d1f23291c4bdbc832977b2b4577964b8301c8)
source4/dsdb/samdb/ldb_modules/samldb.c