Imported Upstream version 4.2
This commit is contained in:
+2
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ident "$Id: valid.c 3232 2010-08-22 19:13:53Z nekral-guest $"
|
||||
#ident "$Id$"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
@@ -95,6 +95,7 @@ bool valid (const char *password, const struct passwd *ent)
|
||||
*/
|
||||
|
||||
if ( (NULL != ent->pw_name)
|
||||
&& (NULL != encrypted)
|
||||
&& (strcmp (encrypted, ent->pw_passwd) == 0)) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user