Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
weiph1029 committed Oct 17, 2024
1 parent 18ec1a0 commit a40e1bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stun.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ int stun_msg_write_attr(StunMessage* msg, StunAttrType type, uint16_t length, ch

stun_attr->type = htons(type);
stun_attr->length = htons(length);
if (value) memcpy(stun_attr->value, value, length);
if (value)
memcpy(stun_attr->value, value, length);

length = 4 * ((length + 3) / 4);
header->length = htons(ntohs(header->length) + sizeof(StunAttribute) + length);
Expand Down

0 comments on commit a40e1bb

Please sign in to comment.