ecore-con - use return valude of sendto.
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 27 Aug 2014 05:49:47 +0000 (14:49 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 27 Aug 2014 05:49:47 +0000 (14:49 +0900)
fixes CID 1232726

src/lib/ecore_con/ecore_con.c

index 81b02f8d0da6bef75c7ec3d095ccc58821267f46..d9237ec7223d954b4ab727d55cfe060eac48f231 100644 (file)
@@ -745,9 +745,15 @@ _ecore_con_client_ecore_con_base_send(Eo *obj EINA_UNUSED, Ecore_Con_Client_Data
 
 
    if (cl->host_server && ((host_server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_UDP))
-     sendto(host_server->fd, data, size, 0, (struct sockaddr *)cl->client_addr,
-            cl->client_addr_len);
-   else 
+     {
+        int ret;
+
+        ret = (int)sendto(host_server->fd, data, size, 0,
+                          (struct sockaddr *)cl->client_addr,
+                          cl->client_addr_len);
+        return ret;
+     }
+   else
      {
         if (!cl->buf)
           {