From 81805222ec7a652e188bd106199820570c9dcaad Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sun, 30 Sep 2012 11:26:24 +0200 Subject: 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 Autobuild-User(master): Kai Blin Autobuild-Date(master): Sun Sep 30 13:09:14 CEST 2012 on sn-devel-104 --- source4/dns_server/dns_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dns_server') 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); -- cgit