]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Clean up pw-structs
authorerdgeist <>
Fri, 20 Jul 2007 10:20:02 +0000 (10:20 +0000)
committererdgeist <>
Fri, 20 Jul 2007 10:20:02 +0000 (10:20 +0000)
opentracker.c

index 1a056e6656f15df7d1417d76d84e767203ac60ad..bb3de02461d9ca9987ea3d6b65b0e5738de6fa51 100644 (file)
@@ -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 );