diff options
-rw-r--r-- | auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | r/* |
2 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 2 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
3 | * | 3 | * |
4 | * Redistribution and use in source and binary forms, with or without | 4 | * Redistribution and use in source and binary forms, with or without |
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth.c,v 1.42 2002/05/13 20:44:58 markus Exp $"); | 26 | RCSID("$OpenBSD: auth.c,v 1.43 2002/05/17 14:27:55 millert Exp $"); |
27 | 27 | ||
28 | #ifdef HAVE_LOGIN_H | 28 | #ifdef HAVE_LOGIN_H |
29 | #include <login.h> | 29 | #include <login.h> |
@@ -485,7 +485,7 @@ getpwnamallow(const char *user) | |||
485 | } | 485 | } |
486 | #ifdef BSD_AUTH | 486 | #ifdef BSD_AUTH |
487 | if ((as = auth_open()) == NULL || auth_setpwd(as, pw) != 0 || | 487 | if ((as = auth_open()) == NULL || auth_setpwd(as, pw) != 0 || |
488 | auth_approval(NULL, lc, pw->pw_name, "ssh") <= 0) { | 488 | auth_approval(as, lc, pw->pw_name, "ssh") <= 0) { |
489 | debug("Approval failure for %s", user); | 489 | debug("Approval failure for %s", user); |
490 | pw = NULL; | 490 | pw = NULL; |
491 | } | 491 | } |