tor-browser

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

commit 075eb3b973b1ce76290494fb0db4452a2a2fcd4f
parent 9ec0f841b34137a2bb24f91ac778f452924f7bbc
Author: Michael Froman <mfroman@mozilla.com>
Date:   Tue, 18 Nov 2025 22:29:11 +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;