Check protocol id length so that scanner don't overrun buffer