Fix Bug#1093439 "Check key length when reading key from network"