From: Ian Jackson Date: Thu, 14 Jul 2011 00:00:45 +0000 (+0100) Subject: site: When shutting down, if debug enabled, do dump the MSG7 X-Git-Tag: v0.2.0~25 X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/commitdiff_plain/16045f8d416f9d9c946f64587a45ae71303410a5?hp=a8b248452badf6704b7a8b203aae1768ff41020f site: When shutting down, if debug enabled, do dump the MSG7 Insert a call to dump_packet in send_msg7. The packet is mostly ciphertext and may not make a great deal of sense but turning on debugging should not show all management packets; only data packets should not be shown. Signed-off-by: Ian Jackson --- diff --git a/site.c b/site.c index 34805f6..157d9f2 100644 --- a/site.c +++ b/site.c @@ -909,6 +909,7 @@ static bool_t send_msg7(struct site *st, cstring_t reason) buf_prepend_uint32(&st->buffer,LABEL_MSG0); buf_prepend_uint32(&st->buffer,st->index); buf_prepend_uint32(&st->buffer,st->remote_session_id); + dump_packet(st,&st->buffer,&st->peer,False); st->comm->sendmsg(st->comm->st,&st->buffer,&st->peer); BUF_FREE(&st->buffer); return True;