From 808310a5692cb372754064ade6ed21e92f5c7342 Mon Sep 17 00:00:00 2001 From: Victor Farazdagi Date: Sun, 8 Jan 2017 17:55:37 +0300 Subject: node: fix pointer dereference issue in StartRPC (#3532) --- node/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/api.go b/node/api.go index 988eff379..3c451fc8a 100644 --- a/node/api.go +++ b/node/api.go @@ -104,7 +104,7 @@ func (api *PrivateAdminAPI) StartRPC(host *string, port *int, cors *string, apis } } - if err := api.node.startHTTP(fmt.Sprintf("%s:%d", *host, port), api.node.rpcAPIs, modules, *cors); err != nil { + if err := api.node.startHTTP(fmt.Sprintf("%s:%d", *host, *port), api.node.rpcAPIs, modules, *cors); err != nil { return false, err } return true, nil -- cgit