From 3f0a18ba080c4c72cea714ff216735c9e80ecd90 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 20 Jul 2007 10:20:02 +0000 Subject: Clean up pw-structs --- opentracker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 1a056e6..bb3de02 100644 --- a/opentracker.c +++ b/opentracker.c @@ -765,7 +765,7 @@ int main( int argc, char **argv ) { } } - // Bind to our default tcp/udp ports + /* Bind to our default tcp/udp ports */ if( !ot_sockets_count ) { ot_try_bind( serverip, 6969, 1 ); ot_try_bind( serverip, 6969, 0 ); @@ -779,6 +779,7 @@ int main( int argc, char **argv ) { setegid( pws->pw_gid ); setuid( pws->pw_uid ); setgid( pws->pw_gid ); seteuid( pws->pw_uid ); } + endpwent(); signal( SIGPIPE, SIG_IGN ); signal( SIGINT, graceful ); -- cgit v1.2.3