lib/telnet_cmds.c: add command code range check
lib/telnet_options.c: add option code range check