diff options
author | Kai Blin <kai@samba.org> | 2012-09-30 11:26:24 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-09-30 13:09:14 +0200 |
commit | 81805222ec7a652e188bd106199820570c9dcaad (patch) | |
tree | 01a0246893b011a48569ae7a8141c213b3ba6297 /source4/dns_server | |
parent | ecb4a8a824faf89a442bdd0eeb5ab9f79a14fb40 (diff) | |
download | samba-81805222ec7a652e188bd106199820570c9dcaad.tar.gz samba-81805222ec7a652e188bd106199820570c9dcaad.tar.bz2 samba-81805222ec7a652e188bd106199820570c9dcaad.zip |
s4 dns: Fix return code for deleted records
This fixes bug #9225. We already had a test for this scenario, but the test wasn't
correct. This patch fixes the test, and also fixes the bug.
Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User(master): Kai Blin <kai@samba.org>
Autobuild-Date(master): Sun Sep 30 13:09:14 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/dns_server')
-rw-r--r-- | source4/dns_server/dns_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dns_server/dns_utils.c b/source4/dns_server/dns_utils.c index a364ae68ad..398839390e 100644 --- a/source4/dns_server/dns_utils.c +++ b/source4/dns_server/dns_utils.c @@ -201,7 +201,7 @@ WERROR dns_lookup_records(struct dns_server *dns, if (el == NULL) { *records = NULL; *rec_count = 0; - return WERR_OK; + return DNS_ERR(NAME_ERROR); } recs = talloc_zero_array(mem_ctx, struct dnsp_DnssrvRpcRecord, el->num_values); |