s4:dsdb/vlv_pagination: fix segfault in vlv_results()
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Jan 2022 14:57:08 +0000 (15:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 20 Jan 2022 10:04:39 +0000 (10:04 +0000)
commit7d16a56b9d1cde8a5174381ef4924a2ea7be59bc
tree154ed87dcfcaa31b7e78bb6bf0342fad93126d58
parent19fa22b1fbcf33dbc4defe4dd2e487a642786c49
s4:dsdb/vlv_pagination: fix segfault in vlv_results()

It can happen that the vlv_results() failes, e.g. due to
LDB_ERR_TIME_LIMIT_EXCEEDED, if that happens we should not
dereference ares->response, if ares is NULL.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jan 20 10:04:39 UTC 2022 on sn-devel-184
source4/dsdb/samdb/ldb_modules/vlv_pagination.c