diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2003-10-07 01:47:28 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2003-10-07 01:47:28 +0000 |
commit | ec4fef96f1553d6c99a6d47c98759b237fd28dfa (patch) | |
tree | 0323e3604158d8c3451c53025b5e3ebe95663cfb | |
parent | 79c11d46cba32a2fce5716f6b0d1f67a3f6ea6d4 (diff) |
Don't use logit for banner, since it truncates to MSGBUFSIZ; bz #668 & #707.
ok markus@
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 6da1c05f922..b33e396634b 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.124 2003/08/25 10:33:33 djm Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.125 2003/10/07 01:47:27 dtucker Exp $"); #include "ssh.h" #include "ssh2.h" @@ -359,7 +359,8 @@ input_userauth_banner(int type, u_int32_t seq, void *ctxt) debug3("input_userauth_banner"); msg = packet_get_string(NULL); lang = packet_get_string(NULL); - logit("%s", msg); + if (options.log_level > SYSLOG_LEVEL_QUIET) + fprintf(stderr, "%s", msg); xfree(msg); xfree(lang); } |