From bb6449bedbff8336291b2c24a281d9b042c44ca2 Mon Sep 17 00:00:00 2001 From: Jana Radhakrishnan Date: Wed, 16 Sep 2015 13:54:29 -0700 Subject: [PATCH] Fix unmarshal error in endpoint interface Instead of passing the pointer to &ep.iface the current code is passing the value. So the source variable is not getting updated properly. Signed-off-by: Jana Radhakrishnan --- libnetwork/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetwork/endpoint.go b/libnetwork/endpoint.go index a8b3acd032..fd5f7b63f5 100644 --- a/libnetwork/endpoint.go +++ b/libnetwork/endpoint.go @@ -87,7 +87,7 @@ func (ep *endpoint) UnmarshalJSON(b []byte) (err error) { ep.id = epMap["id"].(string) ib, _ := json.Marshal(epMap["ep_iface"]) - json.Unmarshal(ib, ep.iface) + json.Unmarshal(ib, &ep.iface) tb, _ := json.Marshal(epMap["exposed_ports"]) var tPorts []types.TransportPort