Commit c4b50bfb authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête
Browse files

Fix udp-turn returning wrong message length in socket_recv_messages.

When using optimal path where recv message has only one buffer, the
buffer length was set to the size of the buffer, not its length, which was
causing the wrong message length to be returned causing the agent to
discard STUN messages because their size doesn't match received data
parent 77c7dfa9
......@@ -354,7 +354,7 @@ socket_recv_messages (NiceSocket *sock,
message->buffers[0].buffer != NULL &&
message->buffers[1].buffer == NULL)) {
buffer = message->buffers[0].buffer;
buffer_length = message->buffers[0].size;
buffer_length = message->length;
} else {
nice_debug ("%s: **WARNING: SLOW PATH**", G_STRFUNC);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment