Skip to content

Commit ce0ef49

Browse files
committed
check if pastaResult exists before returning
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 6794047 commit ce0ef49

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libpod/container_internal_common.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,11 @@ func (c *Container) checkForIPv6(netStatus map[string]types.StatusBlock) bool {
22872287
}
22882288
}
22892289

2290-
return c.pastaResult.IPv6
2290+
if c.pastaResult != nil {
2291+
return c.pastaResult.IPv6
2292+
}
2293+
2294+
return false
22912295
}
22922296

22932297
// Add a new nameserver to the container's resolv.conf, ensuring that it is the

0 commit comments

Comments
 (0)