=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.178 retrieving revision 1.179 diff -u -r1.178 -r1.179 --- src/usr.bin/ssh/packet.c 2012/12/11 22:31:18 1.178 +++ src/usr.bin/ssh/packet.c 2012/12/12 16:45:52 1.179 @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.178 2012/12/11 22:31:18 markus Exp $ */ +/* $OpenBSD: packet.c,v 1.179 2012/12/12 16:45:52 markus Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1266,6 +1266,7 @@ logit("Bad packet length %u.", active_state->packlen); packet_disconnect("Packet corrupt"); } + buffer_clear(&active_state->incoming_packet); } else if (active_state->packlen == 0) { /* * check if input size is less than the cipher block size,