This should be:

```c
host->flags &= ~F_CONNECT;
```