mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
FS-11162: [zrtp] Hangup race causing rare crash on zrtp calls
This commit is contained in:
parent
5efecb1ffa
commit
3e5938a540
@ -1330,6 +1330,10 @@ static int zrtp_send_rtp_callback(const zrtp_stream_t *stream, char *rtp_packet,
|
|||||||
switch_size_t len = rtp_packet_length;
|
switch_size_t len = rtp_packet_length;
|
||||||
zrtp_status_t status = zrtp_status_ok;
|
zrtp_status_t status = zrtp_status_ok;
|
||||||
|
|
||||||
|
if (!rtp_session->sock_output) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, rtp_packet, &len);
|
switch_socket_sendto(rtp_session->sock_output, rtp_session->remote_addr, 0, rtp_packet, &len);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user