|
|
@ -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 = |
|
|
/* 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 |
|
|
* revert to default, otherwise set specified value. We only do it in an offer, but |
|
|
* then for both directions. */ |
|
|
* then for both directions. */ |
|
|
if (flags->opmode != OP_OFFER || flags->tos < 0) |
|
|
|
|
|
|
|
|
if (!flags || flags->opmode != OP_OFFER || flags->tos < 0) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
if (flags->tos > 255) |
|
|
if (flags->tos > 255) |
|
|
|