util: Fix debug print on failed SO_REUSEADDR setting in sock_l4()

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-07-13 05:05:28 +02:00
parent 1d223e4b4c
commit f3198c4a06

2
util.c
View file

@ -293,7 +293,7 @@ int sock_l4(const struct ctx *c, int af, uint8_t proto,
} }
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &y, sizeof(y))) if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &y, sizeof(y)))
debug("Failed to set IPV6_V6ONLY on socket %i", fd); debug("Failed to set SO_REUSEADDR on socket %i", fd);
if (bind(fd, sa, sl) < 0) { if (bind(fd, sa, sl) < 0) {
/* We'll fail to bind to low ports if we don't have enough /* We'll fail to bind to low ports if we don't have enough