From 5e606844df577936ebcd13225da85eda80317021 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Sun, 1 Nov 2020 18:01:57 -0800 Subject: Fix returned error when deleting non-existant address PiperOrigin-RevId: 340149214 --- pkg/sentry/socket/netlink/route/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry') diff --git a/pkg/sentry/socket/netlink/route/protocol.go b/pkg/sentry/socket/netlink/route/protocol.go index 22216158e..f4d034c13 100644 --- a/pkg/sentry/socket/netlink/route/protocol.go +++ b/pkg/sentry/socket/netlink/route/protocol.go @@ -487,7 +487,7 @@ func (p *Protocol) delAddr(ctx context.Context, msg *netlink.Message, ms *netlin Addr: value, }) if err != nil { - return syserr.ErrInvalidArgument + return syserr.ErrBadLocalAddress } case linux.IFA_ADDRESS: default: -- cgit v1.2.3