Skip to content

Commit

Permalink
Fix botched test.
Browse files Browse the repository at this point in the history
  • Loading branch information
keltia committed Feb 23, 2014
1 parent c553e83 commit 91e7f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth.c
Expand Up @@ -9,7 +9,7 @@
**/

#ifndef lint
static const char * rcsid = "@(#) $Id: auth.c,v fa7c6a7fb291 2014/02/23 13:34:25 roberto $";
static const char * rcsid = "@(#) $Id: auth.c,v 162282762a82 2014/02/23 14:05:29 roberto $";
#endif

#include "config.h" /* GNU configure */
Expand Down Expand Up @@ -131,7 +131,7 @@ int local_pwcheck (struct passwd * calife, char * user_to_be, \
MESSAGE_1 ("Testing w/o PAM with got_pass = %d\n", got_pass);

/* check arguments */
if (calife == NULL || calife ->pw_name)
if (calife == NULL || calife ->pw_name == NULL || calife->pw_name == "")
{
die(1, "Bad parameter for calife/calife->pw_name");
/*NOTREACHED*/
Expand Down

0 comments on commit 91e7f21

Please sign in to comment.