Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2000 16:55:05 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Maxime Henrion <mux@qualys.com>
Cc:        stable@freebsd.org, bright@wintelcom.net
Subject:   Re: patch for inetd
Message-ID:  <20000920165505.A56705@walton.maths.tcd.ie>
In-Reply-To: <39C8D00D.FBE1407F@qualys.com>; from mux@qualys.com on Wed, Sep 20, 2000 at 04:56:13PM %2B0200
References:  <39C8D00D.FBE1407F@qualys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> *** /usr/src/usr.sbin/inetd/builtins.c	Wed Sep 20 16:49:26 2000
> --- builtins.c	Wed Jul 19 22:27:19 2000
> ***************
> *** 480,487 ****
>   		ssize = read(s, &buf[size], (size_t)onreadlen);
>   		if (ssize == -1)
>   			iderror(0, 0, s, errno);
> - 		else if (ssize == 0)
> - 			return;
>   		bufsiz -= ssize;
>   		size += ssize;
>    	}
> --- 480,485 ----

You don't wan't to return from the ident builtin, I'd actually
suggest "break;" to see if you've recieved enough of a request to
be able to answer. You may still be able to send data to the other
end, as they may just have shutdown half of the connection.

Alfred's patch with the iderror for the EOF case is reasonable,
but I'd be as lienient as possible and attempt to answer the request.

I'll test the patch with a break; when I get home and see if it
works OK. If alfred thinks it's OK I'll commit it.

	David.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000920165505.A56705>