summaryrefslogtreecommitdiff
path: root/pkg/specgen/validate.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/specgen/validate.go')
-rw-r--r--pkg/specgen/validate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/validate.go b/pkg/specgen/validate.go
index 78e4d8ad5..dd5ca3a55 100644
--- a/pkg/specgen/validate.go
+++ b/pkg/specgen/validate.go
@@ -138,7 +138,7 @@ func (s *SpecGenerator) validate(rt *libpod.Runtime) error {
if err := s.IpcNS.validate(); err != nil {
return err
}
- if err := s.NetNS.validate(); err != nil {
+ if err := validateNetNS(&s.NetNS); err != nil {
return err
}
if err := s.PidNS.validate(); err != nil {