smurf: Correct checking of mask size