Commit 6996164b authored by Dafydd Harries's avatar Dafydd Harries

STUN server: copy transaction ID from request into response

darcs-hash:20070201123421-c9803-566c1d9d79c8234278e17f3d0a3f65c4889487a8.gz
parent cee7e2fe
......@@ -37,7 +37,7 @@ handle_packet (
}
stun_message_free (msg);
msg = stun_message_new (STUN_MESSAGE_BINDING_RESPONSE, NULL);
msg = stun_message_new (STUN_MESSAGE_BINDING_RESPONSE, msg->transaction_id);
msg->attributes = g_malloc0 (2 * sizeof (StunAttribute));
msg->attributes[0] = stun_attribute_mapped_address_new (
ntohl (from->sin_addr.s_addr), ntohs (from->sin_port));
......
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