Build fix.

This commit is contained in:
Adam Ierymenko 2021-08-04 16:58:30 -04:00
parent 0edb7776c7
commit 8376cfe15d
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -195,7 +195,7 @@ impl Peer {
// fails we fall back to the static secret. If decryption with an ephemeral secret succeeds // fails we fall back to the static secret. If decryption with an ephemeral secret succeeds
// the forward secrecy flag in the receive path is set. // the forward secrecy flag in the receive path is set.
let forward_secrecy = { let forward_secrecy = {
let mut secret = &mut rx.static_secret; let mut secret = if rx.ephemeral_secret.is_some() { rx.ephemeral_secret.as_mut().unwrap() } else { &mut rx.static_secret };
loop { loop {
match header.cipher() { match header.cipher() {
CIPHER_NOCRYPT_POLY1305 => { CIPHER_NOCRYPT_POLY1305 => {