diff options
-rw-r--r-- | passt.c | 2 | ||||
-rw-r--r-- | tap.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -211,7 +211,7 @@ int main(int argc, char **argv) isolate_initial(); - c.pasta_netns_fd = c.fd_tap = c.fd_tap_listen = -1; + c.pasta_netns_fd = c.fd_tap = -1; sigemptyset(&sa.sa_mask); sa.sa_flags = 0; @@ -1304,8 +1304,7 @@ void tap_sock_init(struct ctx *c) } if (c->mode == MODE_PASST) { - if (c->fd_tap_listen == -1) - tap_sock_unix_init(c); + tap_sock_unix_init(c); /* In passt mode, we don't know the guest's MAC address until it * sends us packets. Use the broadcast address so that our |