[server] minor access.c fix to quiet both Coverity and the CLANG static analyzer

This commit is contained in:
Michael Rash
2015-08-16 21:31:48 -04:00
parent 8edad8b583
commit 5e0a668a7f
+1 -1
View File
@@ -90,7 +90,7 @@ add_acc_user(char **user_var, uid_t *uid_var, struct passwd *upw,
errno = 0;
upw = pw = getpwnam(val);
if(pw == NULL)
if(upw == NULL || pw == NULL)
{
log_msg(LOG_ERR, "[*] Unable to determine UID for %s: %s.",
var_name, errno ? strerror(errno) : "Not a user on this system");