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

pull/3534/head
Victor Farazdagi 8 years ago committed by Felix Lange
parent 0a5450fe04
commit 808310a569
  1. 2
      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 false, err
} }
return true, nil return true, nil

Loading…
Cancel
Save