]> git.ipfire.org Git - thirdparty/bind9.git/commit
Avoid iterating name twice when constructing fctx->info
authorDiego Fronza <diego@isc.org>
Sat, 28 Nov 2020 21:07:29 +0000 (18:07 -0300)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 29 Jan 2021 09:35:17 +0000 (10:35 +0100)
commitf3bd27373d1d36e4cdebc87f89d130b3b0841bf7
tree94a17667401a1d970c89bc4df3cd8f9d9ba1b89b
parent443e743156244b50ebd7669a1cf3d0a8dba1941c
Avoid iterating name twice when constructing fctx->info

This is a minor performance improvement, we store the result of the
first call to strlcat to use as an offset in the next call when
constructing fctx->info string.

(cherry picked from commit 49c40827f6b88b4c12751086aab529298587e265)
lib/dns/resolver.c