Added a length limit to hostmasks