samples: net: Do not assume TCP connection was successful

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
1 file changed