Re: [PATCH] Fix an issue where bird may accidently close a socket

2019-05-29 Thread Kenth Eriksson
On Wed, 2019-05-29 at 16:02 +0200, Ondrej Zajicek wrote: > On Mon, May 27, 2019 at 03:29:26PM +, Kenth Eriksson wrote: > > On Mon, 2019-05-27 at 17:12 +0200, Ondrej Zajicek wrote: > > > CAUTION: This email originated from outside of the organization. > > > Do > > > not click links or open

Re: [PATCH] Fix an issue where bird may accidently close a socket

2019-05-29 Thread Ondrej Zajicek
On Mon, May 27, 2019 at 03:29:26PM +, Kenth Eriksson wrote: > On Mon, 2019-05-27 at 17:12 +0200, Ondrej Zajicek wrote: > > CAUTION: This email originated from outside of the organization. Do > > not click links or open attachments unless you recognize the sender > > and know the content is

Re: [PATCH] Fix an issue where bird may accidently close a socket

2019-05-27 Thread Kenth Eriksson
On Mon, 2019-05-27 at 17:12 +0200, Ondrej Zajicek wrote: > CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you recognize the sender > and know the content is safe. > > > On Mon, May 27, 2019 at 02:28:52PM +0200, Kenth Eriksson

Re: [PATCH] Fix an issue where bird may accidently close a socket

2019-05-27 Thread Ondrej Zajicek
On Mon, May 27, 2019 at 02:28:52PM +0200, Kenth Eriksson wrote: > Datagram sockets may return 0 and stream sockets can return 0 > if the requested number of bytes to read is 0. Hi You mean that if count arg to read() is 0? How that may happen? -- Elen sila lumenn' omentielvo Ondrej

[PATCH] Fix an issue where bird may accidently close a socket

2019-05-27 Thread Kenth Eriksson
Datagram sockets may return 0 and stream sockets can return 0 if the requested number of bytes to read is 0. Signed-off-by: Kenth Eriksson --- sysdep/unix/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index d1d86e3b..44dd3172 100644