summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-03-15 03:15:18 +0000
committergreen <green@FreeBSD.org>2001-03-15 03:15:18 +0000
commit8b51db0ce8cbeceac5b79b866617c5f42552a964 (patch)
tree8b17bfb3a1a5a84d505a15f4be880135b45b9b7f /crypto
parent29d9568ff2f142090d6810b93b953c5753a6183a (diff)
downloadFreeBSD-src-8b51db0ce8cbeceac5b79b866617c5f42552a964.zip
FreeBSD-src-8b51db0ce8cbeceac5b79b866617c5f42552a964.tar.gz
Don't dump core when an attempt is made to login using protocol 2 with
an invalid user name.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/auth2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/auth2.c b/crypto/openssh/auth2.c
index 8b13de0..6785fac 100644
--- a/crypto/openssh/auth2.c
+++ b/crypto/openssh/auth2.c
@@ -215,6 +215,7 @@ input_userauth_request(int type, int plen, void *ctxt)
#endif
} else {
log("input_userauth_request: illegal user %s", user);
+ authctxt->pw = NULL;
}
authctxt->user = xstrdup(user);
authctxt->service = xstrdup(service);
OpenPOWER on IntegriCloud