summaryrefslogtreecommitdiff
path: root/lib/addns
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-09 08:55:40 +0100
committerAndrew Bartlett <abartlet@samba.org>2012-11-13 22:14:13 +1100
commitb59c5db5f74f56c0536635a41ae51c389109ceb5 (patch)
treec09c81a3e2d0007fa9847b5512ce7a2d9bd4d335 /lib/addns
parent095c7627dfbc1e25665d342699ea004dc8d0880b (diff)
downloadsamba-b59c5db5f74f56c0536635a41ae51c389109ceb5.tar.gz
lib/addns: remove pointless check for resp->num_additionals != 1
We never use resp->additionals, so there's no reason to check. This fixes dns updates against BIND9 (used in a Samba4 domain). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/addns')
-rw-r--r--lib/addns/dnsgss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/addns/dnsgss.c b/lib/addns/dnsgss.c
index 64a7d859a0e..c22173468d5 100644
--- a/lib/addns/dnsgss.c
+++ b/lib/addns/dnsgss.c
@@ -175,8 +175,7 @@ static DNS_ERROR dns_negotiate_gss_ctx_int( TALLOC_CTX *mem_ctx,
* TODO: Compare id and keyname
*/
- if ((resp->num_additionals != 1) ||
- (resp->num_answers == 0) ||
+ if ((resp->num_answers == 0) ||
(resp->answers[0]->type != QTYPE_TKEY)) {
err = ERROR_DNS_INVALID_MESSAGE;
goto error;