Commit 6e91f5b9 authored by Marcus Lundblad's avatar Marcus Lundblad Committed by Youness Alaoui

Fixing tabs, trailing whitespaces and indentation

parent 29f97e9e
This diff is collapsed.
...@@ -544,7 +544,7 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg, ...@@ -544,7 +544,7 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg,
uint8_t *username = NULL; uint8_t *username = NULL;
uint16_t realm_len; uint16_t realm_len;
uint16_t username_len; uint16_t username_len;
realm = (uint8_t *) stun_message_find (msg, realm = (uint8_t *) stun_message_find (msg,
STUN_ATTRIBUTE_REALM, &realm_len); STUN_ATTRIBUTE_REALM, &realm_len);
username = (uint8_t *) stun_message_find (msg, username = (uint8_t *) stun_message_find (msg,
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
bool stun_message_init (StunMessage *msg, StunClass c, StunMethod m, bool stun_message_init (StunMessage *msg, StunClass c, StunMethod m,
const StunTransactionId id) const StunTransactionId id)
{ {
if (msg->buffer_len < STUN_MESSAGE_HEADER_LENGTH) if (msg->buffer_len < STUN_MESSAGE_HEADER_LENGTH)
return FALSE; return FALSE;
......
...@@ -225,7 +225,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg, ...@@ -225,7 +225,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
{ {
stun_agent_init_request (agent, msg, buffer, buffer_len, stun_agent_init_request (agent, msg, buffer, buffer_len,
STUN_CREATEPERMISSION); STUN_CREATEPERMISSION);
/* PEER address */ /* PEER address */
if (peer) { if (peer) {
if (stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_PEER_ADDRESS, if (stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_PEER_ADDRESS,
...@@ -233,7 +233,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg, ...@@ -233,7 +233,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
return 0; return 0;
} }
} }
/* nonce */ /* nonce */
if (nonce != NULL) { if (nonce != NULL) {
if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_NONCE, if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_NONCE,
...@@ -247,7 +247,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg, ...@@ -247,7 +247,7 @@ size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *msg,
realm, realm_len) != STUN_MESSAGE_RETURN_SUCCESS) realm, realm_len) != STUN_MESSAGE_RETURN_SUCCESS)
return 0; return 0;
} }
/* username */ /* username */
if (username != NULL) { if (username != NULL) {
if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_USERNAME, if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_USERNAME,
......
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