aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
authorVictor Farazdagi <simple.square@gmail.com>2017-01-08 22:55:37 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-01-08 22:55:37 +0800
commit808310a5692cb372754064ade6ed21e92f5c7342 (patch)
tree098de2e4fc5db8311d368a5848ce220084501ecd /node
parent0a5450fe0453d2a443dfca50d1106b9dbdb7a8fe (diff)
downloadgo-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar.gz
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar.bz2
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar.lz
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar.xz
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.tar.zst
go-tangerine-808310a5692cb372754064ade6ed21e92f5c7342.zip
node: fix pointer dereference issue in StartRPC (#3532)
Diffstat (limited to 'node')
-rw-r--r--node/api.go2
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