究竟是什么0&& checksum!= stored_checksum吗?

时间:2018-04-18 18:48:48

标签: sshd

as shown in the docs

diff --git a/packet.c b/packet.c
--- a/packet.c
+++ b/packet.c
@@ -1635,7 +1635,7 @@ ssh_packet_read_poll1(struct ssh *ssh, u_char *typep)

        cp = sshbuf_ptr(state->incoming_packet) + len - 4;
        stored_checksum = PEEK_U32(cp);
-       if (checksum != stored_checksum) {
+       if (0 && checksum != stored_checksum) {
                error("Corrupted check bytes on input");
                if ((r = sshpkt_disconnect(ssh, "connection corrupted")) != 0 ||
                    (r = ssh_packet_write_wait(ssh)) != 0)

有人可以解释这个补丁的作用吗?:

删除了这个:

-       if (checksum != stored_checksum) {

并添加:

+       if (0 && checksum != stored_checksum) {

究竟0 && checksum != stored_checksum到底是做什么的?

0 个答案:

没有答案