diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-02-23 17:40:45 -0500 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-02-23 17:40:45 -0500 |
commit | 8b971219f411274077099b556670c22f970065dd (patch) | |
tree | ea3697ebe2797e1978c8f73fb2ae61bf2a888420 /stun/stunagent.c | |
parent | 7d5a266740b6c2d18cda97e8caae9b988822672f (diff) | |
download | libnice-8b971219f411274077099b556670c22f970065dd.tar.gz |
Rename stun_has_cookie into stun_message_has_cookie
Diffstat (limited to 'stun/stunagent.c')
-rw-r--r-- | stun/stunagent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stun/stunagent.c b/stun/stunagent.c index 620dd63..1c597d6 100644 --- a/stun/stunagent.c +++ b/stun/stunagent.c @@ -131,7 +131,7 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg, /* TODO: reject it or not ? */ if ((agent->compatibility == STUN_COMPATIBILITY_RFC5389 || agent->compatibility == STUN_COMPATIBILITY_WLM2009) && - !stun_has_cookie (msg)) { + !stun_message_has_cookie (msg)) { stun_debug ("STUN demux error: no cookie!\n"); return STUN_VALIDATION_BAD_REQUEST; } @@ -470,7 +470,7 @@ size_t stun_agent_build_unknown_attributes_error (StunAgent *agent, /* NOTE: Old RFC3489 compatibility: * When counter is odd, duplicate one value for 32-bits padding. */ - if (!stun_has_cookie (request) && (counter & 1)) + if (!stun_message_has_cookie (request) && (counter & 1)) ids[counter++] = ids[0]; if (stun_message_append_bytes (msg, STUN_ATTRIBUTE_UNKNOWN_ATTRIBUTES, |