]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Added a more explanatory comment.
authorKarel Slany <karel.slany@nic.cz>
Mon, 25 Jul 2016 14:13:58 +0000 (16:13 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 11 Aug 2016 12:06:45 +0000 (14:06 +0200)
lib/layer/iterate.c

index f668638a4fc968c77ee0bf17635f14a288ff439d..fe5f3e070ea014923507b346e99c5e5120d42c94 100644 (file)
@@ -512,8 +512,11 @@ static int begin(knot_layer_t *ctx, void *module_param)
                return ctx->state;
        }
        /*
-        * Fail if no query section. DNS cookies must be handled before
-        * this layer.
+        * RFC7873 5.4 extends the QUERY operation code behaviour in order to
+        * be able to generate requests for server cookies. Such requests have
+        * QDCOUNT equal to zero and must contain a cookie option.
+        * Server cookie queries must be handled by the cookie module/layer
+        * before this layer.
         */
        const struct kr_request *req = ctx->data;
        const struct kr_query *qry = req->current_query;