Close fd after fork in the child.

This commit is contained in:
Auke Kok
2016-11-23 13:27:57 -08:00
parent 9ae71ee7a1
commit 3d7bd6aebc
+2
View File
@@ -117,6 +117,8 @@ static void deliver_payload(const char *filename)
exit(EXIT_FAILURE);
}
close(fd);
/* drop privileges */
if (setgroups(0, NULL)) {
perror("setgroups");