Commit 35b4e5be authored by Youness Alaoui's avatar Youness Alaoui

always check return value of stun_agent_init_error

parent 13c69615
...@@ -263,8 +263,9 @@ static int dgram_process (int sock, StunAgent *oldagent, StunAgent *newagent) ...@@ -263,8 +263,9 @@ static int dgram_process (int sock, StunAgent *oldagent, StunAgent *newagent)
break; break;
default: default:
stun_agent_init_error (agent, &response, buf, sizeof (buf), if (!stun_agent_init_error (agent, &response, buf, sizeof (buf),
&request, STUN_ERROR_BAD_REQUEST); &request, STUN_ERROR_BAD_REQUEST))
return -1;
} }
iov.iov_len = stun_agent_finish_message (agent, &response, NULL, 0); iov.iov_len = stun_agent_finish_message (agent, &response, NULL, 0);
......
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