Skip to content

Commit

Permalink
Merge pull request #348 from paspo/pk-check
Browse files Browse the repository at this point in the history
private key size check
  • Loading branch information
rustdesk authored Jan 30, 2024
2 parents 0ebfc09 + cea8403 commit 42cdfb0
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 42cdfb0

Please sign in to comment.