]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: resolvers: fix truncated TLD consecutive to the API fix
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Oct 2021 06:09:25 +0000 (08:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Oct 2021 06:09:25 +0000 (08:09 +0200)
commit7b232f132dc9a0a6ee6fa3fabfa6e50196af9240
tree921ab73409e4b6ea035ef0a1f990d479eb7d5d92
parentcc8fd4c0404523101f4d1473bcd8589086da022d
BUG/MEDIUM: resolvers: fix truncated TLD consecutive to the API fix

A bug was introduced by commit previous bf9498a31 ("MINOR: resolvers:
fix the resolv_str_to_dn_label() API about trailing zero") as the code
is particularly contrived and hard to test. The output writes the last
char at [i+1] so the trailing zero and return value must be at i+1.

This will have to be backported where the patch above is backported
since it was needed for a fix.
src/resolvers.c