diff options
author | Victor Farazdagi <simple.square@gmail.com> | 2017-01-08 22:55:37 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-01-08 22:55:37 +0800 |
commit | 808310a5692cb372754064ade6ed21e92f5c7342 (patch) | |
tree | 098de2e4fc5db8311d368a5848ce220084501ecd /node | |
parent | 0a5450fe0453d2a443dfca50d1106b9dbdb7a8fe (diff) | |
download | dexon-808310a5692cb372754064ade6ed21e92f5c7342.tar.gz dexon-808310a5692cb372754064ade6ed21e92f5c7342.tar.zst dexon-808310a5692cb372754064ade6ed21e92f5c7342.zip |
node: fix pointer dereference issue in StartRPC (#3532)
Diffstat (limited to 'node')
-rw-r--r-- | node/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |