Commit eb9d67d7 authored by Olivier Crête's avatar Olivier Crête

stunagent: Only declare the long term key valid if the username/realm coudl be read

parent d09eb198
......@@ -554,10 +554,10 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg,
stun_hash_creds (realm, realm_len,
username, username_len,
key, key_len, md5);
}
memcpy (msg->long_term_key, md5, sizeof(msg->long_term_key));
msg->long_term_valid = TRUE;
}
}
/* If no realm/username and long term credentials,
then don't send the message integrity */
......
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