bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in ftpd


From: Alain Magloire
Subject: Re: Bug in ftpd
Date: Fri, 20 Sep 2002 17:21:45 -0400 (EDT)

> 
> There is a bug in the ftpd daemon of the latest inetutils-1.4.1 that 
> causes the server to bind to the incorrect port.
> 
> In ftpd/server_mode.c, line 96, the correct line should be:
> 
> port = (sv == NULL) ? DEFPORT : ntohs(sv->s_port);
> 
> The previous call to getservbyname() returns the port number in network 
> byte order.

2002-09-20 Alain Magloire

        * server_mode.c: getservbyname() returns the port number in network
        byte order, use ntohs(sv->s_port) for the conversion.
        Patch From  Paul Poh <address@hidden>

Thanks patch apply.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]