TT#14008 Fix segfault when 'tls-send-to' option not set

(cherry picked from commit 79a461ff7e)

Change-Id: I842fdf1d69081f44f6d0b3f0e5ab08b3949d30c3
(cherry picked from commit b5438b0021)
mr10.2.1
Anton Voylenko 4 years ago committed by Richard Fuchs
parent 428800d13c
commit fbce8e7064

@ -202,7 +202,7 @@ out:
}
db_do_stream(mf, ret->output, "single", stream, ssrc);
}
if ((stream->forwarding_on || mf->forwarding_on) && !ret->tls_fwd_stream) {
if ((stream->forwarding_on || mf->forwarding_on) && !ret->tls_fwd_stream && tls_send_to_ep.port) {
// initialise the connection
ZERO(ret->tls_fwd_poller);
dbg("Starting TLS connection to %s", endpoint_print_buf(&tls_send_to_ep));

Loading…
Cancel
Save