Commit 06d42f1c authored by Madaro Livio's avatar Madaro Livio Committed by Youness Alaoui

Fix sending data padding for TURN TCP draft 9 and RFC 5766

Data padding is required for interoperability with standard TURN server.
parent 9bc0702e
......@@ -188,8 +188,8 @@ socket_send (NiceSocket *sock, const NiceAddress *to,
gchar buffer[MAX_UDP_MESSAGE_SIZE + sizeof(guint16) + sizeof(padbuf)];
guint buffer_len = 0;
if (priv->compatibility != NICE_TURN_SOCKET_COMPATIBILITY_DRAFT9 ||
priv->compatibility == NICE_TURN_SOCKET_COMPATIBILITY_RFC5766)
if (priv->compatibility != NICE_TURN_SOCKET_COMPATIBILITY_DRAFT9 &&
priv->compatibility != NICE_TURN_SOCKET_COMPATIBILITY_RFC5766)
padlen = 0;
if (priv->compatibility == NICE_TURN_SOCKET_COMPATIBILITY_GOOGLE) {
......
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