浏览代码

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 <mrjana@docker.com>
Jana Radhakrishnan 9 年之前
父节点
当前提交
bb6449bedb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libnetwork/endpoint.go

+ 1 - 1
libnetwork/endpoint.go

@@ -87,7 +87,7 @@ func (ep *endpoint) UnmarshalJSON(b []byte) (err error) {
 	ep.id = epMap["id"].(string)
 	ep.id = epMap["id"].(string)
 
 
 	ib, _ := json.Marshal(epMap["ep_iface"])
 	ib, _ := json.Marshal(epMap["ep_iface"])
-	json.Unmarshal(ib, ep.iface)
+	json.Unmarshal(ib, &ep.iface)
 
 
 	tb, _ := json.Marshal(epMap["exposed_ports"])
 	tb, _ := json.Marshal(epMap["exposed_ports"])
 	var tPorts []types.TransportPort
 	var tPorts []types.TransportPort