diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.41 2001/02/12 16:16:23 markus Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.42 2001/02/13 22:49:40 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | 29 | ||
@@ -189,7 +189,6 @@ input_userauth_request(int type, int plen, void *ctxt) | |||
189 | if (authctxt->attempt++ == 0) { | 189 | if (authctxt->attempt++ == 0) { |
190 | /* setup auth context */ | 190 | /* setup auth context */ |
191 | struct passwd *pw = NULL; | 191 | struct passwd *pw = NULL; |
192 | setproctitle("%s", user); | ||
193 | pw = getpwnam(user); | 192 | pw = getpwnam(user); |
194 | if (pw && allowed_user(pw) && strcmp(service, "ssh-connection")==0) { | 193 | if (pw && allowed_user(pw) && strcmp(service, "ssh-connection")==0) { |
195 | authctxt->pw = pwcopy(pw); | 194 | authctxt->pw = pwcopy(pw); |
@@ -204,6 +203,7 @@ input_userauth_request(int type, int plen, void *ctxt) | |||
204 | start_pam("NOUSER"); | 203 | start_pam("NOUSER"); |
205 | #endif | 204 | #endif |
206 | } | 205 | } |
206 | setproctitle("%s", pw ? user : "unknown"); | ||
207 | authctxt->user = xstrdup(user); | 207 | authctxt->user = xstrdup(user); |
208 | authctxt->service = xstrdup(service); | 208 | authctxt->service = xstrdup(service); |
209 | authctxt->style = style ? xstrdup(style) : NULL; /* currently unused */ | 209 | authctxt->style = style ? xstrdup(style) : NULL; /* currently unused */ |