Skip to content

Commit

Permalink
Fix nil deref
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Mar 13, 2024
1 parent e65760d commit 1ccafed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/http_api_c.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (hc *HttpController) HandleAction(w http.ResponseWriter, r *http.Request) {
if _, ok := accountInfo["error"]; !ok {
// Account is opened
if strings.ToLower(fmt.Sprintf("%s", accountInfo["frontier"])) != strings.ToLower(processRequestJsonBlock.Block.Previous) {
ErrBadrequest(w, r, err.Error())
ErrBadrequest(w, r, "invalid request")
return
}
}
Expand Down

0 comments on commit 1ccafed

Please sign in to comment.