[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] socket.c: fixed uninitialized fd->revents member in ssh_socket_poll() function
[Thread Prev] | [Thread Next]
- Subject: Re: [PATCH] socket.c: fixed uninitialized fd->revents member in ssh_socket_poll() function
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 22 Oct 2010 16:50:03 +0200
- To: libssh@xxxxxxxxxx
Hi Vic, It just took me 10 minutes to understand how setting revent was going to change something, but I noticed that poll was possible to bypass if fd->events was zero. I'm commiting it asap. Aris Le 22/10/10 13:59, Vic Lee a écrit : > Hi, > > The attached patch is simple and self-explained. It applies to v0-4 branch. > > Ths issue was actually quite serious. Intermittently it caused > channel_select() enter in an infinite loop, took 100% CPU and never return. > > Vic >
[PATCH] socket.c: fixed uninitialized fd->revents member in ssh_socket_poll() function | Vic Lee <llyzs@xxxxxxx> |