lib/addns: remove pointless check for resp->num_additionals != 1
[sfrench/samba-autobuild/.git] / 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;