mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
When the "(status == LDB_SUCCESS && msg != NULL)" condition in this routine is not evaluating to true, "new_rid" is read uninitialized, comparing it against ~0. Initialize new_rid and compare it against UINT32_MAX instead of ~0. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>