Skip to content

Commit

Permalink
fix segfault if NG protocol is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
rfuchs committed Aug 5, 2014
1 parent 2d79408 commit 9d001e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d001e3

Please sign in to comment.