Commit dba31d4d authored by John Selbie's avatar John Selbie Committed by Youness Alaoui

stund: Set message length (fixes infinite loop) when receiving unknown attributes

parent 6449dabb
...@@ -249,7 +249,7 @@ static int dgram_process (int sock, StunAgent *oldagent, StunAgent *newagent) ...@@ -249,7 +249,7 @@ static int dgram_process (int sock, StunAgent *oldagent, StunAgent *newagent)
/* Unknown attributes */ /* Unknown attributes */
if (validation == STUN_VALIDATION_UNKNOWN_REQUEST_ATTRIBUTE) if (validation == STUN_VALIDATION_UNKNOWN_REQUEST_ATTRIBUTE)
{ {
stun_agent_build_unknown_attributes_error (agent, &response, buf, iov.iov_len = stun_agent_build_unknown_attributes_error (agent, &response, buf,
sizeof (buf), &request); sizeof (buf), &request);
goto send_buf; goto send_buf;
} }
......
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