0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-22 14:27:03 +00:00

Linux: Not binding the default-vrf socket to the (nonexistent) vrf device

This commit is contained in:
Maria Matejka 2024-01-24 17:39:37 +01:00
parent 365ea12ea1
commit 2379ed40be

View File

@ -1049,7 +1049,7 @@ sk_setup(sock *s)
}
#endif
if (s->vrf && !s->iface)
if (s->vrf && (s->vrf != &default_vrf) && !s->iface)
{
/* Bind socket to associated VRF interface.
This is Linux-specific, but so is SO_BINDTODEVICE. */