diff options
author | 2000-01-24 20:31:19 +0000 | |
---|---|---|
committer | 2000-01-24 20:31:19 +0000 | |
commit | 4cd21045347d440268fbda63e59249ffbd875ee9 (patch) | |
tree | 94d788cba22f56cfa1f5476df6a9db88567e445e | |
parent | first cut at indent.. more to come (diff) | |
download | wireguard-openbsd-4cd21045347d440268fbda63e59249ffbd875ee9.tar.xz wireguard-openbsd-4cd21045347d440268fbda63e59249ffbd875ee9.zip |
don't panic if client behaves strange. ok deraadt@
-rw-r--r-- | usr.bin/ssh/sshd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 0f270b4e598..616123e6f32 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -11,7 +11,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.80 2000/01/20 15:19:22 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.81 2000/01/24 20:31:19 markus Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -230,6 +230,7 @@ grace_alarm_handler(int sig) char * get_authname(int type) { + static char buf[1024]; switch (type) { case SSH_CMSG_AUTH_PASSWORD: return "password"; @@ -248,8 +249,8 @@ get_authname(int type) return "s/key"; #endif } - fatal("get_authname: unknown auth %d: internal error", type); - return NULL; + snprintf(buf, sizeof buf, "bad-auth-msg-%d", type); + return buf; } /* |