Skip to content

Commit

Permalink
private key size check
Browse files Browse the repository at this point in the history
  • Loading branch information
paspo committed Jan 30, 2024
1 parent 0ebfc09 commit cea8403
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rendezvous_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,9 @@ impl RendezvousServer {
let mut tmp = [0u8; sign::SECRETKEYBYTES];
tmp[..].copy_from_slice(&sk);
out_sk = Some(sign::SecretKey(tmp));
} else {
log::error!("Malformed private key");
std::process::exit(1);
}
}

Expand Down

0 comments on commit cea8403

Please sign in to comment.