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

stun usage turn: Check return value as is done elsewhere

parent bd14e256
...@@ -96,7 +96,9 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg, ...@@ -96,7 +96,9 @@ size_t stun_usage_turn_create (StunAgent *agent, StunMessage *msg,
} }
if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) { if (compatibility == STUN_USAGE_TURN_COMPATIBILITY_OC2007) {
stun_message_append32(msg, STUN_ATTRIBUTE_MS_VERSION, 1); if (stun_message_append32(msg, STUN_ATTRIBUTE_MS_VERSION, 1) !=
STUN_MESSAGE_RETURN_SUCCESS)
return 0;
} }
if (lifetime >= 0) { if (lifetime >= 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