lib/addns: remove pointless check for resp->num_additionals != 1
authorStefan Metzmacher <metze@samba.org>
Fri, 9 Nov 2012 07:55:40 +0000 (08:55 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 11:14:13 +0000 (22:14 +1100)
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>
lib/addns/dnsgss.c

index 64a7d859a0ea6d544265a3e7e2afbef46f9fd7a0..c22173468d50f83a7b2b4285b859a300bb132bfb 100644 (file)
@@ -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;