Mask the configured mark value to ensure it is in range

This commit is contained in:
Tobias Brunner 2012-06-26 12:50:58 +02:00
parent 66e12b926e
commit f102c5f341

View File

@ -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;
}