diff options
Diffstat (limited to 'src/rendezvous_server.rs')
-rw-r--r-- | src/rendezvous_server.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rendezvous_server.rs b/src/rendezvous_server.rs index 0c0d107..ede0ede 100644 --- a/src/rendezvous_server.rs +++ b/src/rendezvous_server.rs @@ -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); } } |