summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2017-10-13 21:13:55 +0000
committerDamien Miller <djm@cvs.openbsd.org>2017-10-13 21:13:55 +0000
commitb58f9e52db81ca9fb7e3df95f21448dad49a2ad1 (patch)
tree8ad850d0b4ccb41a1e4c5cfa10a484b6979f450a /usr.bin
parent3d580ab7e2a750d9a6a768649468ecf6e6fc8b8f (diff)
log debug messages sent to peer; ok deraadt markus
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index 54c927dc006..1353ccf3ca8 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.264 2017/09/12 06:32:07 djm Exp $ */
+/* $OpenBSD: packet.c,v 1.265 2017/10/13 21:13:54 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1762,6 +1762,8 @@ ssh_packet_send_debug(struct ssh *ssh, const char *fmt,...)
vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
+ debug3("sending debug message: %s", buf);
+
if ((r = sshpkt_start(ssh, SSH2_MSG_DEBUG)) != 0 ||
(r = sshpkt_put_u8(ssh, 0)) != 0 || /* always display */
(r = sshpkt_put_cstring(ssh, buf)) != 0 ||