diff options
author | Ian Lewis <ianlewis@google.com> | 2020-11-01 18:01:57 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-01 18:03:43 -0800 |
commit | 5e606844df577936ebcd13225da85eda80317021 (patch) | |
tree | 5f1048aaea3e0c594f66745fcb6e7e58288c1486 /pkg/sentry/socket | |
parent | df88f223bb5474a462da65ede6f266eb52f1b2ef (diff) |
Fix returned error when deleting non-existant address
PiperOrigin-RevId: 340149214
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r-- | pkg/sentry/socket/netlink/route/protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
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: |