Browse Source

dont break legacy control protocols

pull/53/head
Richard Fuchs 11 years ago
parent
commit
97b472bfdb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/call.c

+ 2
- 2
daemon/call.c View File

@ -2164,13 +2164,13 @@ int monologue_offer_answer(struct call_monologue *other_ml, GQueue *streams,
/* Special case: if this is an offer and actpass is being offered (as it should),
* we would normally choose to be active. However, if this is a reinvite and we
* were passive previously, we should retain this role. */
if (flags->opmode == OP_OFFER && MEDIA_ISSET(other_media, SETUP_ACTIVE)
if (flags && flags->opmode == OP_OFFER && MEDIA_ISSET(other_media, SETUP_ACTIVE)
&& MEDIA_ISSET(other_media, SETUP_PASSIVE)
&& (tmp & (MEDIA_FLAG_SETUP_ACTIVE | MEDIA_FLAG_SETUP_PASSIVE))
== MEDIA_FLAG_SETUP_PASSIVE)
MEDIA_CLEAR(other_media, SETUP_ACTIVE);
/* if passive mode is requested, honour it if we can */
if (flags->dtls_passive && MEDIA_ISSET(other_media, SETUP_PASSIVE))
if (flags && flags->dtls_passive && MEDIA_ISSET(other_media, SETUP_PASSIVE))
MEDIA_CLEAR(other_media, SETUP_ACTIVE);
if (memcmp(&other_media->fingerprint, &sp->fingerprint, sizeof(sp->fingerprint))) {


Loading…
Cancel
Save