summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/launch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/launch.c b/src/launch.c
index 9e214bc0..152b4d97 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -957,6 +957,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. */