agent: Fix length test in sshcontrol parser.