node: fix pointer dereference issue in StartRPC (#3532)

This commit is contained in:
Victor Farazdagi 2017-01-08 17:55:37 +03:00 committed by Felix Lange
parent 0a5450fe04
commit 808310a569

View File

@ -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