diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-26 13:31:58 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-28 09:48:22 +0100 |
commit | e34af1161d49e73484d6957001c0f7bcc6366181 (patch) | |
tree | 3369297e7090fe5358d041a4b6de9f4724c18bfa /src | |
parent | 71bbfeb33460dd5ae2cf2ac957dad6658cb8b933 (diff) | |
download | libguestfs-e34af1161d49e73484d6957001c0f7bcc6366181.tar.gz libguestfs-e34af1161d49e73484d6957001c0f7bcc6366181.tar.xz libguestfs-e34af1161d49e73484d6957001c0f7bcc6366181.zip |
launch: Set g->sock = -1 to avoid double-close.
This fixes commit ef5c02c6ee72eb8e127115923951777a2c2b8480.
(cherry picked from commit 11317b5d1243f3afc35f7abe8edc646f75813e36)
Diffstat (limited to 'src')
-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 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. */ |