]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
nits
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 4 May 2023 10:48:27 +0000 (12:48 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 12 Jun 2023 08:32:28 +0000 (10:32 +0200)
lib/rules/api.h
lib/selection_forward.c

index 16365ce1780555e527bf1c544364aa6643eaf8cb..7e2dd138e0b5f2eaf264242ff6b2a14e4eb9850a 100644 (file)
@@ -21,6 +21,8 @@ KR_EXPORT
 void kr_rules_deinit(void);
 
 /** Try answering the query from local data.
+ *
+ * \return kr_error(): notably -ENOENT or 0
  *
  * FIXME: we probably want to ensure AA flags in answer as appropriate.
  *   Perhaps approach it like AD?  Tweak flags in ranked_rr_array_entry
index 3fcfc75454a52bc14ec2c8ce71ef56ce936eb737..588fcb363b030fecd99d4216b223b1b6998abf2a 100644 (file)
@@ -15,7 +15,7 @@ static_assert(FORWARDING_TIMEOUT >= KR_NS_TIMEOUT_MIN_DEAD_TIMEOUT,
                "Bad combination of NS selection limits.");
 
 struct forward_local_state {
-       kr_sockaddr_array_t *targets;
+       const kr_sockaddr_array_t *targets; /// data owned by kr_request
        struct address_state *addr_states;
        /** Index of last choice in the targets array, used for error reporting. */
        size_t last_choice_index;