summaryrefslogtreecommitdiffstats
path: root/auth2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:04:08 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 03:04:08 +0000
commit7ebb635d812d68772ce3fb0b64d798c54fbfab71 (patch)
tree6bf832ba30e5d9643ed75677ce9ff6155fe7e549 /auth2.c
parent6328ab39891ea64ccd5c91e9be2ec5c4f843bbd0 (diff)
- markus@cvs.openbsd.org 2002/03/19 14:27:39
[auth.c auth1.c auth2.c] make getpwnamallow() allways call pwcopy()
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/auth2.c b/auth2.c
index 9bfcde5c..98e1eda1 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2.c,v 1.88 2002/03/18 17:50:31 provos Exp $");
+RCSID("$OpenBSD: auth2.c,v 1.89 2002/03/19 14:27:39 markus Exp $");
#include <openssl/evp.h>
@@ -47,7 +47,6 @@ RCSID("$OpenBSD: auth2.c,v 1.88 2002/03/18 17:50:31 provos Exp $");
#include "pathnames.h"
#include "uidswap.h"
#include "auth-options.h"
-#include "misc.h"
#include "hostfile.h"
#include "canohost.h"
#include "match.h"
@@ -200,16 +199,11 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
start_pam("NOUSER");
#endif
}
- /* Free memory */
- if (use_privsep && pw != NULL)
- pwfree(pw);
-
- setproctitle("%s%s", pw ? user : "unknown",
+ setproctitle("%s%s", authctxt->pw ? user : "unknown",
use_privsep ? " [net]" : "");
authctxt->user = xstrdup(user);
authctxt->service = xstrdup(service);
authctxt->style = style ? xstrdup(style) : NULL;
-
if (use_privsep)
mm_inform_authserv(service, style);
} else if (strcmp(user, authctxt->user) != 0 ||