Skip to content

Guard empty RPC client admin flag#459

Open
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-client-empty-admin-flag
Open

Guard empty RPC client admin flag#459
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-client-empty-admin-flag

Conversation

@giwaov

@giwaov giwaov commented Jul 4, 2026

Copy link
Copy Markdown

Summary

  • Check the variadic admin flag length before reading admin[0].
  • Add client URL coverage for an empty forwarded admin flag and for an explicit admin call.

Why

Callers can forward an empty []bool through the variadic admin flag. The previous nil-only check could panic on admin[0] in that case, even though it should behave like a normal query URL.

Testing

  • git diff --check
  • Not run: Go toolchain is not installed in this environment.

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