FS-10267: [freeswitch-core] zrtp_enrollment broken since 1.6.13 #resolve

This commit is contained in:
Brian West 2017-05-08 16:58:16 -05:00 committed by Mike Jerris
parent c4aa3c0eb4
commit 5fb6632c0d

View File

@ -5584,6 +5584,11 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
switch_mutex_lock(rtp_session->flag_mutex);
for (pmap = *rtp_session->pmaps; pmap && pmap->allocated; pmap = pmap->next) {
if (ntohl(*(int *)(b+4)) == ZRTP_MAGIC_COOKIE) {
accept_packet = 1;
break;
}
if (!pmap->negotiated) {
continue;
}