Skip to content

fix(api): add missing return statements after RespondError - #797

Open
AruneshDwivedi wants to merge 1 commit into
flashbots:mainfrom
AruneshDwivedi:fix/missing-returns-779
Open

fix(api): add missing return statements after RespondError#797
AruneshDwivedi wants to merge 1 commit into
flashbots:mainfrom
AruneshDwivedi:fix/missing-returns-779

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

Fixes #779

In handleGetHeader, two error paths called RespondError without returning, allowing execution to continue with potentially nil values from bid.Value() and bid.BlockHash(). This could cause a panic or incorrect response.

The fix adds the missing return statements after each RespondError call.

…etHeader

Two error paths in handleGetHeader called RespondError without returning,
allowing execution to continue with potentially nil values and cause a
panic or incorrect response.

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant