← Commit list

074c9036b

Denis Vlasenko
Denis Vlasenko
2009-03-16
FAILED Duration: 32s

Subject

ftpd: fix thinko: set_nport takes port in network order

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/ftpd.c+1 -1
@@ -522,7 +522,7 @@ handle_port(void)
G.port_addr = xdotted2sockaddr(raw, port);
#else
G.port_addr = get_peer_lsa(STDIN_FILENO);
- set_nport(G.port_addr, port);
+ set_nport(G.port_addr, htons(port));
#endif
WRITE_OK(FTP_PORTOK);
}