Browse Source

Do not double close socket sent to get_fd

master
Con Kolivas 10 years ago
parent
commit
c87ad0b239
  1. 1
      src/libckpool.c

1
src/libckpool.c

@ -970,7 +970,6 @@ int _get_fd(int sockd, const char *file, const char *func, const int line)
goto out;
}
out:
Close(sockd);
cm = (int *)CMSG_DATA(cmptr);
newfd = *cm;
free(cmptr);

Loading…
Cancel
Save