diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.216 2015/10/21 11:33:03 gsoares Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.217 2015/11/08 21:59:11 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 |
@@ -1581,6 +1581,7 @@ ssh_packet_read_poll2(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) | |||
1581 | logit("Bad packet length %u.", state->packlen); | 1581 | logit("Bad packet length %u.", state->packlen); |
1582 | if ((r = sshpkt_disconnect(ssh, "Packet corrupt")) != 0) | 1582 | if ((r = sshpkt_disconnect(ssh, "Packet corrupt")) != 0) |
1583 | return r; | 1583 | return r; |
1584 | return SSH_ERR_CONN_CORRUPT; | ||
1584 | } | 1585 | } |
1585 | sshbuf_reset(state->incoming_packet); | 1586 | sshbuf_reset(state->incoming_packet); |
1586 | } else if (state->packlen == 0) { | 1587 | } else if (state->packlen == 0) { |