diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-11-09 08:55:40 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-11-13 22:14:13 +1100 |
commit | b59c5db5f74f56c0536635a41ae51c389109ceb5 (patch) | |
tree | c09c81a3e2d0007fa9847b5512ce7a2d9bd4d335 /lib/addns | |
parent | 095c7627dfbc1e25665d342699ea004dc8d0880b (diff) | |
download | samba-b59c5db5f74f56c0536635a41ae51c389109ceb5.tar.gz samba-b59c5db5f74f56c0536635a41ae51c389109ceb5.tar.bz2 samba-b59c5db5f74f56c0536635a41ae51c389109ceb5.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/addns/dnsgss.c b/lib/addns/dnsgss.c index 64a7d859a0..c22173468d 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; |