diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-10-13 21:13:54 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-10-20 12:01:03 +1100 |
commit | eb80e26a15c10bc65fed8b8cdb476819a713c0fd (patch) | |
tree | cff26fd22ed2029cf254f91d3b97d8bac3c91c57 | |
parent | 071325f458d615d7740da5c1c1d5a8b68a0b4605 (diff) |
upstream commit
log debug messages sent to peer; ok deraadt markus
Upstream-ID: 3b4fdc0a06ea5083f61d96e20043000f477103d9
-rw-r--r-- | packet.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.264 2017/09/12 06:32:07 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.265 2017/10/13 21:13:54 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * 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,...) | |||
1774 | vsnprintf(buf, sizeof(buf), fmt, args); | 1774 | vsnprintf(buf, sizeof(buf), fmt, args); |
1775 | va_end(args); | 1775 | va_end(args); |
1776 | 1776 | ||
1777 | debug3("sending debug message: %s", buf); | ||
1778 | |||
1777 | if ((r = sshpkt_start(ssh, SSH2_MSG_DEBUG)) != 0 || | 1779 | if ((r = sshpkt_start(ssh, SSH2_MSG_DEBUG)) != 0 || |
1778 | (r = sshpkt_put_u8(ssh, 0)) != 0 || /* always display */ | 1780 | (r = sshpkt_put_u8(ssh, 0)) != 0 || /* always display */ |
1779 | (r = sshpkt_put_cstring(ssh, buf)) != 0 || | 1781 | (r = sshpkt_put_cstring(ssh, buf)) != 0 || |