Browse Source

fix segfault if NG protocol is not used

pull/23/head
Richard Fuchs 12 years ago
parent
commit
9d001e3452
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -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)


Loading…
Cancel
Save