mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
Mask the configured mark value to ensure it is in range
This commit is contained in:
parent
66e12b926e
commit
f102c5f341
@ -449,6 +449,8 @@ static bool handle_mark(char *value, mark_t *mark)
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
/* apply the mask to ensure the value is in range */
|
||||
mark->value &= mark->mask;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user