Skip to content

Commit

Permalink
Incorrect path was passed to new_rpc_call_timer calling out of bounds…
Browse files Browse the repository at this point in the history
… array access

Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Oct 4, 2024
1 parent 5e6c689 commit c0a244d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions stacks-signer/src/client/stacks_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,7 @@ impl StacksClient {
"last_sortition" => %last_sortition,
);
let path = self.tenure_forking_info_path(chosen_parent, last_sortition);
let timer = crate::monitoring::new_rpc_call_timer(
"/v3/tenures/fork_info/:start/:stop",
&self.http_origin,
);
let timer = crate::monitoring::new_rpc_call_timer(path.as_str(), &self.http_origin);
let send_request = || {
self.stacks_node_client
.get(&path)
Expand Down

0 comments on commit c0a244d

Please sign in to comment.