| Index: webrtc/p2p/base/port.cc
|
| diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
|
| index 72f92b20ab25b01546047167b3e1409f0df36d69..93fda17e7cbe86c7912bcb3fbd3e4f129c4e92c8 100644
|
| --- a/webrtc/p2p/base/port.cc
|
| +++ b/webrtc/p2p/base/port.cc
|
| @@ -1411,12 +1411,7 @@ void Connection::OnConnectionRequestResponse(ConnectionRequest* request,
|
|
|
| void Connection::OnConnectionRequestErrorResponse(ConnectionRequest* request,
|
| StunMessage* response) {
|
| - const StunErrorCodeAttribute* error_attr = response->GetErrorCode();
|
| - int error_code = STUN_ERROR_GLOBAL_FAILURE;
|
| - if (error_attr) {
|
| - error_code = error_attr->code();
|
| - }
|
| -
|
| + int error_code = response->GetErrorCodeValue();
|
| LOG_J(LS_INFO, this) << "Received STUN error response"
|
| << " id=" << rtc::hex_encode(request->id())
|
| << " code=" << error_code
|
|
|