On Thu, Oct 06, 2005 at 04:23:22PM +0200, Marc Lehmann wrote:

> > > Sometimes I get this message in the syslog:
> > > 
> > > Oct  6 06:02:47 (none) in.rshd: Connection from cerebro on illegal port 0.
> > 
> > This is about the primary connection, not the stderr connection.
> 
> Interesting, as I wouldn't even know how to create such a connection
> (it doesn't seem possible to do that under linux, which is what the the
> machine doing rsh uses).

I think I found the problem: when resolving the address of the peer, it
also resolves the port number to a service name (if available). There
probably are names defined for ports 512..1023 in /etc/services. A
subsequent atoi() will convert those service names to 0. I'll make sure
it only resolves to numbers.

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to