1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00

Merge pull request #5694 from dfr/freebsd-network-host

run: fix a nil pointer dereference on FreeBSD
This commit is contained in:
openshift-merge-bot[bot]
2024-08-20 12:18:25 +00:00
committed by GitHub

View File

@@ -241,7 +241,7 @@ func (b *Builder) Run(command []string, options RunOptions) error {
// Only add entries here if we do not have to do setup network,
// if we do we have to do it much later after the network setup.
if !configureNetwork {
err = b.addResolvConfEntries(resolvFile, nil, nil, false, true)
err = b.addResolvConfEntries(resolvFile, nil, spec, false, true)
if err != nil {
return err
}