Re: [PATCH 1/3] connection: Only read file descriptor if it was actually received

2013-11-15 Thread Kristian Høgsberg
On Fri, Nov 15, 2013 at 02:17:54PM +0100, Lubomir Rintel wrote: > Otherwise the tail of fds_in buffer would just shift beyond the beginning. > That confuses the actual request handler and results in a crash further on > due to corrupted tail. > > Signal the lack of file descriptor with -1, so that

[PATCH 1/3] connection: Only read file descriptor if it was actually received

2013-11-15 Thread Lubomir Rintel
Otherwise the tail of fds_in buffer would just shift beyond the beginning. That confuses the actual request handler and results in a crash further on due to corrupted tail. Signal the lack of file descriptor with -1, so that the request handler can determine that no valid file descriptor was recei