diff --git a/src/rist-common.c b/src/rist-common.c index 63abcf7e8dc9e79ad8c4c54dfbaa8b88b9d3b669..847f6c6c0e12ae0180e3ec3aa5bd14a0aaf363e9 100755 --- a/src/rist-common.c +++ b/src/rist-common.c @@ -2563,7 +2563,7 @@ protocol_bypass: /* Double check for a valid rtp header */ if ((rtp->flags & 0xc0) != 0x80) { - if (now > (p->log_repeat_timer + RIST_LOG_QUIESCE_TIMER)) { + if (p && now > (p->log_repeat_timer + RIST_LOG_QUIESCE_TIMER)) { rist_log_priv(get_cctx(peer), RIST_LOG_ERROR, "Malformed packet, rtp flag value is %02x instead of 0x80.\n", rtp->flags); p->log_repeat_timer = now;