Change get_command_result() to return an error code.

In case ssl_socket_read() fails.

Signed-off-by: Thiago Farina <tfarina@chromium.org>