gnrc_tftp: set dst_port when duplicated data received

This commit is contained in:
Martine Lenders 2019-07-01 22:59:49 +02:00 committed by Martine S. Lenders
parent 3d9c7ee5de
commit 2fce0950bf

View File

@ -702,6 +702,8 @@ tftp_state _tftp_state_processes(tftp_context_t *ctxt, msg_t *m)
if (proc == TS_DUP) {
DEBUG("tftp: duplicated data received, acking...\n");
ctxt->dst_port = byteorder_ntohs(udp->src_port);
DEBUG("tftp: client's port is %" PRIu16 "\n", ctxt->dst_port);
_tftp_send_dack(ctxt, outbuf, TO_ACK);
return TS_BUSY;
}