In file src/racoon/grabmyaddr.c, function getifaddrs(),
the last open socket is never closed.
I had a problem with a PPPoE provider and racoon would
exit (running out of file descriptors) after a couple
of hours has each time pppd would try to open the PPPoE
session, a new file descriptor would leak.
Adding a close(fd); just before the last return 0;
fixed the problem I had.
I can provide the fix as a patch if you prefer.
Log in to post a comment.