From f09a7132a1b2bed8b3ede4aeb9251ca54b7a12dc Mon Sep 17 00:00:00 2001 From: tamilmani1989 Date: Tue, 26 Jun 2018 12:01:44 -0700 Subject: [PATCH] Fixed the github acsengine issue #176 (#177) --- cni/network/network.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cni/network/network.go b/cni/network/network.go index cd173609c..6c55cbe0d 100644 --- a/cni/network/network.go +++ b/cni/network/network.go @@ -148,6 +148,10 @@ func (plugin *netPlugin) Add(args *cniSkel.CmdArgs) error { args.ContainerID, args.Netns, args.IfName, args.Args, args.Path) defer func() { + if result == nil { + result = &cniTypesCurr.Result{} + } + // Add Interfaces to result. iface = &cniTypesCurr.Interface{ Name: args.IfName,