summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authordtucker <dtucker>2003-10-08 07:32:02 +0000
committerdtucker <dtucker>2003-10-08 07:32:02 +0000
commitc034050a6a56d7e2e988c31c6a41e95dcb8fb60c (patch)
tree1a7cbf30881abed5cf9b08fff925e7f2fbabb68b /sshconnect2.c
parentaa3257972e17bf8ccb59145f68ef61245c92f073 (diff)
downloadopenssh-c034050a6a56d7e2e988c31c6a41e95dcb8fb60c.tar.gz
- dtucker@cvs.openbsd.org 2003/10/07 01:47:27
[sshconnect2.c] Don't use logit for banner, since it truncates to MSGBUFSIZ; bz #668 & #707. ok markus@
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 933c223e..4e3ae2de 100644
--- a/sshconnect2.c
+++ b/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 "openbsd-compat/sys-queue.h"
@@ -361,7 +361,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);
}