From 3e3afd91df020ee7c063f2db829eb975eb3c2bf6 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Mon, 7 Jan 2019 00:59:46 -0800 Subject: [PATCH] Fix misleading log message --- quinn-proto/src/connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quinn-proto/src/connection.rs b/quinn-proto/src/connection.rs index 2ba98c903..3cc5047d0 100644 --- a/quinn-proto/src/connection.rs +++ b/quinn-proto/src/connection.rs @@ -1120,7 +1120,7 @@ impl Connection { .. } => { if rem_cid != self.rem_handshake_cid { - debug!(self.log, "discarding packet with mismatched remote CID: {expected} != {actual}", expected = self.rem_cid, actual = rem_cid); + debug!(self.log, "discarding packet with mismatched remote CID: {expected} != {actual}", expected = self.rem_handshake_cid, actual = rem_cid); return Ok(()); } @@ -1177,7 +1177,7 @@ impl Connection { state.rem_cid_set = true; self.state = State::Handshake(state); } else if rem_cid != self.rem_handshake_cid { - debug!(self.log, "discarding packet with mismatched remote CID: {expected} != {actual}", expected = self.rem_cid, actual = rem_cid); + debug!(self.log, "discarding packet with mismatched remote CID: {expected} != {actual}", expected = self.rem_handshake_cid, actual = rem_cid); return Ok(()); } self.process_early_payload(now, packet)?;