-On FreeBSD _SC_GETPW_R_SIZE_MAX is not supported by sysconf().
Use instead default value for 2K.
-Free allocated resources
-Reorganize network routins