--- previous/src/slirp/tftp.c 2018/04/24 19:30:44 1.1 +++ previous/src/slirp/tftp.c 2018/04/24 19:32:46 1.1.1.2 @@ -127,7 +127,6 @@ static int tftp_send_error(struct tftp_s struct sockaddr_in saddr, daddr; struct mbuf *m; struct tftp_t *tp; - int nobytes; m = m_get(); @@ -152,8 +151,6 @@ static int tftp_send_error(struct tftp_s daddr.sin_addr = spt->client_ip; daddr.sin_port = spt->client_port; - nobytes = 2; - m->m_len = sizeof(struct tftp_t) - 514 + 3 + strlen(msg) - sizeof(struct ip) - sizeof(struct udphdr);