Skip to content

In tftp_read_data(), there is a bug when using pack->info.block to check the block number #111

Description

@lvtaolong

In tftp_xfer.c file in In tftp_read_data() function, line 153, using pack->info.block to compare with (_private->block + 1), but because pack->info.block is from the network package,so need use ntohs() to transfer the endian. I think the correction code should be:
else if ((_private->block + 1) != ntohs(pack->info.block))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions