gen_echoserver: Fix inadequate check of the return value of recv()
gen_listenerdemo: Fix uninitialized memory being passed to do_packet() from my_rhandler()

CID: 1170502
gen_listenerdemo: Fix inadequate check of the return value of recv()