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; goto out;
} }
out: out:
Close(sockd);
cm = (int *)CMSG_DATA(cmptr); cm = (int *)CMSG_DATA(cmptr);
newfd = *cm; newfd = *cm;
free(cmptr); free(cmptr);

Loading…
Cancel
Save