Browse Source

Fix segfault when 'tls-send-to' option not set

pull/1446/head
Anton Voylenko 4 years ago
parent
commit
79a461ff7e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      recording-daemon/packet.c

+ 1
- 1
recording-daemon/packet.c View File

@ -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