mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
launch: Set g->sock = -1 to avoid double-close.
This fixes commit ef5c02c6ee.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user