CVE-2019-12436 dsdb/paged_results: ignore successful results without messages
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 17 May 2019 02:42:24 +0000 (14:42 +1200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 19 Jun 2019 08:16:39 +0000 (08:16 +0000)
commit6aa5d1f684f6bdbae46508347d093a8def27912a
tree5c39445f0e7cbb1f0794819d054ffb9c1a2b537e
parent1cac79dd982496f1112dcb63339307cbb9ec00f1
CVE-2019-12436 dsdb/paged_results: ignore successful results without messages

So that we don't dereference result->msgs[0] when it doesn't exist.
This can happen when the object has changed in such a way that it no
longer matches the original search query.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Wed Jun 19 08:16:39 UTC 2019 on sn-devel-184
source4/dsdb/samdb/ldb_modules/paged_results.c
source4/dsdb/tests/python/vlv.py