Verify source addresses for STUN responses

This commit is contained in:
Cameron Gutman committed 2026-11-03 00:49:12 -06:00
1 parent 134eee49e0
commit 7bf16de8e2
5 files changed
+58 -12

No files matched your search

+2 -1
View File
@@ -267,7 +267,8 @@ static void AudioReceiveThreadProc(void* context) {
}
}
packet->header.size = recvUdpSocket(rtpSocket, &packet->data[0], MAX_PACKET_SIZE, useSelect);
packet->header.size = recvUdpSocket(rtpSocket, &packet->data[0], MAX_PACKET_SIZE,
useSelect, NULL, NULL);
if (packet->header.size < 0) {
Limelog("Audio Receive: recvUdpSocket() failed: %d\n", (int)LastSocketError());
ListenerCallbacks.connectionTerminated(LastSocketFail());