18 lines
569 B
Diff
18 lines
569 B
Diff
diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c
|
|
index a1b134d9b16..b821b774b38 100644
|
|
--- a/ssl/quic/quic_port.c
|
|
+++ b/ssl/quic/quic_port.c
|
|
@@ -1806,8 +1806,10 @@ static void port_default_packet_handler(QUIC_URXE *e, void *arg,
|
|
* forget qrx so channel can create a new one
|
|
* with valid initial encryption level keys.
|
|
*/
|
|
- qrx_src = qrx;
|
|
- qrx = NULL;
|
|
+ if (qrx != NULL) {
|
|
+ qrx_src = qrx;
|
|
+ qrx = NULL;
|
|
+ }
|
|
}
|
|
|
|
port_bind_channel(port, &e->peer, &scid, &hdr.dst_conn_id,
|