DEBUG: protocol: yell loudly during registration of invalid sock_domain
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 13:06:35 +0000 (15:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Oct 2021 13:50:49 +0000 (15:50 +0200)
commitbdcee7fbc930bae0428cadc9b1078a5dfa6eff72
tree7bf43ffa13f3fb6432db9cb47bd78f0062011aeb
parent52b28d2f30eb47529d12150697a0ad9c6189f9f1
DEBUG: protocol: yell loudly during registration of invalid sock_domain

The test on the sock_domain is a bit useless because the protocols are
registered at boot time, and the test silently fails and returns no
error. Use a BUG_ON() instead to make sure to catch such bugs in the
code if any.
src/protocol.c