Skip to content

Commit 65538e9

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

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
@@ -2318,7 +2318,11 @@ func (c *Container) checkForIPv6(netStatus map[string]types.StatusBlock) bool {
23182318
}
23192319
}
23202320

2321-
return c.pastaResult.IPv6
2321+
if c.pastaResult != nil {
2322+
return c.pastaResult.IPv6
2323+
}
2324+
2325+
return false
23222326
}
23232327

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

0 commit comments

Comments
 (0)