]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11162: [zrtp] Hangup race causing rare crash on zrtp calls
authorMike Jerris <mike@jerris.com>
Mon, 14 May 2018 23:02:54 +0000 (19:02 -0400)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:53 +0000 (07:21 +0000)
src/switch_rtp.c

index a45a0a66c52fd938a9357bf64a6db02931a15a26..58232552e70cb3c1b30287a608702a6e0daf2b90 100644 (file)
@@ -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;
        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);
        return status;
 }