tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8cf9ef32f2e30c7568f69b9fb46ffc34c5d6c2fb
parent 3c484193dc747f4fdc2a88914f9d616ac3408343
Author: Michael Froman <mfroman@mozilla.com>
Date:   Tue, 18 Nov 2025 17:44:41 +0000

Bug 2000353 - remove disabled code from stun_server_ctx.c r=bwc,ng

Differential Revision: https://phabricator.services.mozilla.com/D272759

Diffstat:
Mdom/media/webrtc/transport/third_party/nICEr/src/stun/stun_server_ctx.c | 15---------------
1 file changed, 0 insertions(+), 15 deletions(-)

diff --git a/dom/media/webrtc/transport/third_party/nICEr/src/stun/stun_server_ctx.c b/dom/media/webrtc/transport/third_party/nICEr/src/stun/stun_server_ctx.c @@ -354,21 +354,6 @@ int nr_stun_server_process_request(nr_stun_server_ctx *ctx, nr_socket *sock, cha _status = R_FAILED; } -#if 0 - /* EKR: suppressed these checks because if you have an error when - you are sending an error, things go wonky */ -#ifdef SANITY_CHECKS - if (_status == R_ALREADY) { - assert(NR_STUN_GET_TYPE_CLASS(res->header.type) == NR_CLASS_ERROR_RESPONSE); - assert(nr_stun_message_has_attribute(res, NR_STUN_ATTR_ERROR_CODE, 0)); - } - else { - assert(NR_STUN_GET_TYPE_CLASS(res->header.type) == NR_CLASS_RESPONSE); - assert(!nr_stun_message_has_attribute(res, NR_STUN_ATTR_ERROR_CODE, 0)); - } -#endif /* SANITY_CHECKS */ -#endif - if (0) { skip_response: _status = 0;