diff --git a/daemon/call.c b/daemon/call.c index 9af77c645..b11dec0b6 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1874,7 +1874,7 @@ static void __tos_change(struct call *call, const struct sdp_ng_flags *flags) { /* Handle TOS= parameter. Negative value = no change, not present or too large = * revert to default, otherwise set specified value. We only do it in an offer, but * then for both directions. */ - if (flags->opmode != OP_OFFER || flags->tos < 0) + if (!flags || flags->opmode != OP_OFFER || flags->tos < 0) return; if (flags->tos > 255)