raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=352174784e708ee878a71aa39d88a69f5d78a9ec

commit 352174784e708ee878a71aa39d88a69f5d78a9ec
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Apr 18 14:21:06 2017 +0900

    ecore pipe - fix new coverity complaint about using closed socket
    
    this should fix CID 1374297
---
 src/lib/ecore/ecore_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c
index f66c5b3..cab04b6 100644
--- a/src/lib/ecore/ecore_pipe.c
+++ b/src/lib/ecore/ecore_pipe.c
@@ -606,7 +606,7 @@ _ecore_pipe_wait(Ecore_Pipe *p,
                   p->message = 0;
                }
 
-             if (fd_timer_found)
+             if ((fd_timer_found) && (p->timerfd != PIPE_FD_INVALID))
                {
                   pipe_read(p->timerfd, &timerfdbuf, sizeof(timerfdbuf));
                   _ecore_pipe_unhandle(p);

-- 


Reply via email to