diff --git a/virtcontainers/network.go b/virtcontainers/network.go index 53e188374b..15401af655 100644 --- a/virtcontainers/network.go +++ b/virtcontainers/network.go @@ -280,7 +280,7 @@ func (endpoint *VhostUserEndpoint) Attach(h hypervisor) error { } id := hex.EncodeToString(randBytes) - d := drivers.VhostUserNetDevice{ + d := &drivers.VhostUserNetDevice{ MacAddress: endpoint.HardAddr, } d.SocketPath = endpoint.SocketPath