← Commit list

b477e18c1

Denis Vlasenko
Denis Vlasenko
2007-02-08
FAILED Duration: 10s

Subject

tftp: fix my bug

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/tftp.c+1 -1
@@ -280,7 +280,7 @@ static int tftp(
unsigned from_port;
case 1:
from->len = peer_lsa->len;
- memset(from, 0, peer_lsa->len);
+ memset(&from->sa, 0, peer_lsa->len);
len = recvfrom(socketfd, rbuf, tftp_bufsize, 0,
&from->sa, &from->len);
if (len < 0) {