Merge "chan_sip: Check that an iostream exists before accessing."

This commit is contained in:
Joshua Colp 2018-01-12 08:45:08 -06:00 committed by Gerrit Code Review
commit 3286fd5ef8
1 changed files with 1 additions and 1 deletions

View File

@ -29450,7 +29450,7 @@ static int sip_prepare_socket(struct sip_pvt *p)
return s->fd;
}
if ((s->type & (AST_TRANSPORT_TCP | AST_TRANSPORT_TLS)) &&
s->tcptls_session) {
s->tcptls_session && s->tcptls_session->stream) {
return ast_iostream_get_fd(s->tcptls_session->stream);
}
if ((s->type & (AST_TRANSPORT_WS | AST_TRANSPORT_WSS))) {