1. 18 Mar, 2021 16 commits
  2. 17 Mar, 2021 6 commits
  3. 16 Mar, 2021 8 commits
  4. 15 Mar, 2021 4 commits
  5. 11 Mar, 2021 4 commits
    • Michal Nowak's avatar
      Merge branch '2565-servestale-fetchlimits-crash' into 'main' · e3912092
      Michal Nowak authored
      Fix servestale fetchlimits crash
      
      Closes #2565
      
      See merge request !4797
      e3912092
    • Matthijs Mekking's avatar
      Fix servestale fetchlimits crash · 87591de6
      Matthijs Mekking authored
      When we query the resolver for a domain name that is in the same zone
      for which is already one or more fetches outstanding, we could
      potentially hit the fetch limits. If so, recursion fails immediately
      for the incoming query and if serve-stale is enabled, we may try to
      return a stale answer.
      
      If the resolver is also is authoritative for the parent zone (for
      example the root zone), first a delegation is found, but we first
      check the cache for a better response.
      
      Nothing is found in the cache, so we try to recurse to find the
      answer to the query.
      
      Because of fetch-limits 'dns_resolver_createfetch()' returns an error,
      which 'ns_query_recurse()' propagates to the caller,
      'query_delegation_recurse()'.
      
      Because serve-stale is enabled, 'query_usestale()' is called,
      setting 'qctx->db' to the cache db, but leaving 'qctx->version'
      untouched. Now 'query_lookup()' is called to search for stale data
      in the cache database with a non-NULL 'qctx->version'
      (which is set to a zone db version), and thus we hit an assertion
      in rbtdb.
      
      This crash was introduced in 'main' by commit
      8bcd7fe6.
      87591de6
    • Ondřej Surý's avatar
      Merge branch... · 74a0294b
      Ondřej Surý authored
      Merge branch '2568-test_client-c-error-static-declaration-of-yield-follows-non-static-declaration-on-solaris' into 'main'
      
      Resolve "test_client.c: error: static declaration of 'yield' follows non-static declaration on Solaris"
      
      Closes #2568
      
      See merge request !4795
      74a0294b
    • Mark Andrews's avatar
      af0ee2c7
  6. 08 Mar, 2021 2 commits