BUG/MAJOR: resolvers: segfault using server template without SRV RECORDs
authorEmeric Brun <ebrun@haproxy.com>
Mon, 14 Jun 2021 08:02:18 +0000 (10:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Jun 2021 15:40:40 +0000 (17:40 +0200)
commitd671e9f2a5849332f04cb5d93d3cc6a838e20af6
tree48a71fed75a1aa29f4b0a4d62d340b6a3df9759d
parent32131d40fdd1e67fc06dcb21fd8b62f08677b624
BUG/MAJOR: resolvers: segfault using server template without SRV RECORDs

This patch fix the issue adding a test in srvrq before registering
the server on it during server template init.

This was a regression due to commit :
3406766d57fc11478d54a6fa2d048cbfe4524a4e

This should be backported with this previous commit (until 2.0)

(cherry picked from commit caef19e0c7594b00aa341d8984a33ddd0f15113f)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 3ecaf53374306519ff4394a7e7eebfe05235b9d6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c