diff options
Diffstat (limited to 'src/launch.c')
-rw-r--r-- | src/launch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c index 493455fb..0317875e 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1052,6 +1052,7 @@ launch_appliance (guestfs_h *g) if (close (g->sock) != 0) { perrorf (g, "close: listening socket"); close (r); + g->sock = -1; goto cleanup1; } g->sock = r; /* This is the accepted data socket. */ |