From 68569910286a894f9fd06f23d9cbfe90a80b67b7 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 13 Nov 2020 16:54:11 +0100 Subject: tunnel: do not return a nil error when adding routes fails Reported-by: Michael Zhou Signed-off-by: Jason A. Donenfeld --- tunnel/addressconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tunnel/addressconfig.go') diff --git a/tunnel/addressconfig.go b/tunnel/addressconfig.go index 4be2c36a..c8b315e1 100644 --- a/tunnel/addressconfig.go +++ b/tunnel/addressconfig.go @@ -130,7 +130,7 @@ func configureInterface(family winipcfg.AddressFamily, conf *conf.Config, tun *t err = luid.SetRoutesForFamily(family, deduplicatedRoutes) if err != nil { - return nil + return err } ipif, err := luid.IPInterface(family) -- cgit v1.2.3-59-g8ed1b