From 510b3338d4c939a38ba30e0a91b55b3f06f706ad Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Tue, 26 Jun 2018 23:30:05 -0700 Subject: [PATCH] network: Use pointer for VhostUserNetDevice for Attach Use pointer here since api.VhostUserDevice interface is implemented by VhostUserNetDevice pointer. Fixes #446 Signed-off-by: Archana Shinde --- virtcontainers/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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