LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 1522-ssl-Fix-dtls-queue-handling.patch of Package erlang (Project home:Ledest:erlang:20)

From 8e7794883ec5ed54ed18ae33029036c0426f8d37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A9ter=20Dimitrov?= <peterdmv@erlang.org>
Date: Fri, 29 Mar 2019 16:53:25 +0100
Subject: [PATCH 2/2] ssl: Fix dtls queue handling

Change-Id: I6956eb9c7036cfe72bb1b8cb3e02e22bd71c4c36
---
 lib/ssl/src/dtls_packet_demux.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ssl/src/dtls_packet_demux.erl b/lib/ssl/src/dtls_packet_demux.erl
index e0423b07b4..2e9184b7ac 100644
--- a/lib/ssl/src/dtls_packet_demux.erl
+++ b/lib/ssl/src/dtls_packet_demux.erl
@@ -203,9 +203,9 @@ dispatch(Client, Msg, #state{dtls_msq_queues = MsgQueues} = State) ->
 		    Pid ! Msg,
 		    State#state{dtls_msq_queues = 
 				    kv_update(Client, Queue, MsgQueues)};
-		{{value, _}, Queue} -> 
+		{{value, _UDP}, _Queue} ->
 		    State#state{dtls_msq_queues = 
-				    kv_update(Client, queue:in(Msg, Queue), MsgQueues)};
+				    kv_update(Client, queue:in(Msg, Queue0), MsgQueues)};
 		{empty, Queue} ->
 		    State#state{dtls_msq_queues = 
 				    kv_update(Client, queue:in(Msg, Queue), MsgQueues)}
-- 
2.16.4