summaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-10-13 23:13:54 +0200
committerDamien Miller <djm@mindrot.org>2017-10-20 03:01:03 +0200
commiteb80e26a15c10bc65fed8b8cdb476819a713c0fd (patch)
treecff26fd22ed2029cf254f91d3b97d8bac3c91c57 /packet.c
parentupstream commit (diff)
downloadopenssh-eb80e26a15c10bc65fed8b8cdb476819a713c0fd.tar.xz
openssh-eb80e26a15c10bc65fed8b8cdb476819a713c0fd.zip
upstream commit
log debug messages sent to peer; ok deraadt markus Upstream-ID: 3b4fdc0a06ea5083f61d96e20043000f477103d9
Diffstat (limited to '')
-rw-r--r--packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index f114ea52c..85638cb2a 100644
--- a/packet.c
+++ b/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
@@ -1774,6 +1774,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 ||