| Index: webrtc/p2p/base/turnport.cc
|
| diff --git a/webrtc/p2p/base/turnport.cc b/webrtc/p2p/base/turnport.cc
|
| index 5ed93dd1d84a05b445aeaeeeed47b3ab26172c3d..37da5de0d51c30e4aeacad634cd8da52abbd6569 100644
|
| --- a/webrtc/p2p/base/turnport.cc
|
| +++ b/webrtc/p2p/base/turnport.cc
|
| @@ -433,6 +433,7 @@ void TurnPort::OnAllocateMismatch() {
|
| }
|
| socket_ = NULL;
|
|
|
| + ResetNonce();
|
| PrepareAddress();
|
| ++allocate_mismatch_retries_;
|
| }
|
| @@ -927,6 +928,12 @@ bool TurnPort::UpdateNonce(StunMessage* response) {
|
| return true;
|
| }
|
|
|
| +void TurnPort::ResetNonce() {
|
| + hash_.clear();
|
| + nonce_.clear();
|
| + realm_.clear();
|
| +}
|
| +
|
| static bool MatchesIP(TurnEntry* e, rtc::IPAddress ipaddr) {
|
| return e->address().ipaddr() == ipaddr;
|
| }
|
|
|