Skip to content

Commit

Permalink
sheepdog: don't leak socket file descriptor upon connection failure
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Meyering <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Jim Meyering authored and Anthony Liguori committed Aug 22, 2012
1 parent 0d07fe4 commit a7e47d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/sheepdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ static int connect_to_sdog(const char *addr, const char *port)
if (errno == EINTR) {
goto reconnect;
}
close(fd);
break;
}

Expand Down

0 comments on commit a7e47d4

Please sign in to comment.