Commit 578e7499 authored by Youness Alaoui's avatar Youness Alaoui

A response or error message should not have a username attribute

parent 0c621b73
......@@ -171,6 +171,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
if (key == NULL &&
(stun_message_get_class (msg) == STUN_REQUEST ||
stun_message_get_class (msg) == STUN_INDICATION) &&
!(stun_message_get_class (msg) == STUN_ERROR &&
stun_message_find_error (msg, &error_code) == 0 &&
(error_code == 400 || error_code == 401)) &&
......
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