Addressed GH comments

This commit is contained in:
Kevin Krakauer
2020-01-08 16:35:01 -08:00
parent 366e050ad5
commit f26a576984
3 changed files with 47 additions and 60 deletions
+1 -4
View File
@@ -1368,10 +1368,7 @@ func (s *SocketOperations) SetSockOpt(t *kernel.Task, level int, name int, optVa
return syserr.ErrNoDevice
}
// Stack must be a netstack stack.
if err := netfilter.SetEntries(stack.(*Stack).Stack, optVal); err != nil {
return err
}
return nil
return netfilter.SetEntries(stack.(*Stack).Stack, optVal)
case linux.IPT_SO_SET_ADD_COUNTERS:
// TODO(gvisor.dev/issue/170): Counter support.