NGIRCd_getNobodyID(): Code cleanup

This commit is contained in:
Alexander Barton 2012-01-03 20:49:42 +01:00
parent edab86e0f8
commit 3193d5477c
1 changed files with 3 additions and 2 deletions

View File

@ -555,9 +555,10 @@ NGIRCd_getNobodyID(uid_t *uid, gid_t *gid )
#endif
pwd = getpwnam("nobody");
if (!pwd) return false;
if (!pwd)
return false;
if ( !pwd->pw_uid || !pwd->pw_gid)
if (!pwd->pw_uid || !pwd->pw_gid)
return false;
*uid = pwd->pw_uid;