diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |