mirror of
https://github.com/containers/podman.git
synced 2025-05-21 09:05:56 +08:00
Fix a segfault in 'podman ps --sync'
We weren't properly populating the container's OCI Runtime in Batch(), causing segfaults on attempting to access it. Add a test to make sure we actually catch cases like this in the future. Fixes #3411 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -627,6 +627,7 @@ func (c *Container) Batch(batchFunc func(*Container) error) error {
|
||||
newCtr.config = c.config
|
||||
newCtr.state = c.state
|
||||
newCtr.runtime = c.runtime
|
||||
newCtr.ociRuntime = c.ociRuntime
|
||||
newCtr.lock = c.lock
|
||||
newCtr.valid = true
|
||||
|
||||
|
Reference in New Issue
Block a user