dns: Always return SOA record for records we should know
authorSamuel Cabrero <scabrero@samba.org>
Tue, 8 Oct 2019 11:30:18 +0000 (13:30 +0200)
committerSamuel Cabrero <scabrero@sn-devel-184>
Fri, 8 Nov 2019 12:31:29 +0000 (12:31 +0000)
commitf9eaf4dc713bab48703a053c9446b6becabe18dc
tree9d07c49d4e6665ec25db653c44dcede28c685d83
parent8dbb8643499c495474f28071750cbfc2da5b60f0
dns: Always return SOA record for records we should know

Regression introduced by commit 4b54e14b7cf456e327b176b365e8471e0899210b,
where the number of returned records is not set by talloc_array_length
when the record is not found.

Found by DELL EMC at SDC SMB3 plugfest trying to perform a secure DNS
update.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Samuel Cabrero <scabrero@samba.org>
Autobuild-Date(master): Fri Nov  8 12:31:30 UTC 2019 on sn-devel-184
source4/dns_server/dns_query.c