From 2379ed40bea517ba6c9fd901b600f187371cb337 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 24 Jan 2024 17:39:37 +0100 Subject: [PATCH] Linux: Not binding the default-vrf socket to the (nonexistent) vrf device --- sysdep/unix/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 11dfb2e4..b4f00107 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -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. */