summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_client.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 17:18:57 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 17:18:57 +0900
commitcaf2b018a2bdc3e51c020ad3adc5a2f765919dee (patch)
tree8276d241caf75fb877ec75f229de79815ed5da79 /src/lib/evas/cserve2/evas_cs2_client.c
parentc87748a7c12f609c8ded05e14a5e8000cb138e52 (diff)
fix possible focket fd of -1 in cserve
this fixes CID 1193207 where a server fd may be -1, connect fail and still be -1 due to failed connect.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index d532644113..ee635dfad4 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -648,6 +648,7 @@ _server_dispatch_until(unsigned int rid)
648 ERR("Could not reconnect to cserve2!"); 648 ERR("Could not reconnect to cserve2!");
649 return EINA_FALSE; 649 return EINA_FALSE;
650 } 650 }
651 if (socketfd == -1) return EINA_FALSE;
651 } 652 }
652 653
653 //DBG("Waiting for request %d...", rid); 654 //DBG("Waiting for request %d...", rid);