commit | bd8a89debc48bb6696c58a346b463d8df18febb2 | [log] [tgz] |
---|---|---|
author | Daniel Willmann <dwillmann@sysmocom.de> | Tue Jun 10 10:02:24 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Jun 22 16:40:59 2014 +0200 |
tree | d5acb3d829b04de4aa978b294071d6f9e0ec06b1 | |
parent | 92107dfd3b99ab0dbb0f4770286454ad94a36de2 [diff] |
write_queue: Avoid possible use-after-free if fd is read-/writable If the FD is both readable and writable and the read callback closes the connection (and frees the surrounding structure) we shouldn't call the write callback (or check anything else in the read fd). With this patch callback functions can return -EBADFD if they don't want the FD to be handled any more.