summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_unix.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:35:39 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:56:47 +0900
commitff269912207ed2d1480cdee1f5e7b07caaa8876d (patch)
tree5534b32abffc054558a52f21715a4ffdbd2ea16b /src/lib/ecore_con/efl_net_server_unix.c
parentd532f28284dc138b5cb05c342ddf14dd56933ea3 (diff)
efl net - fix ipv6 getsockname to use the proper struct to do it
struct sockaddr_storage *addr; AS the actual storage ( a ptr to store the whole data). kind of... wrong. it should be: struct sockaddr_storage addr; see examples of this kind of usage of getsockname: http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch04lev1sec10.html found by PVS studio @fix
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_con/efl_net_server_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c
index 4ec917689d..b1a1d2d158 100644
--- a/src/lib/ecore_con/efl_net_server_unix.c
+++ b/src/lib/ecore_con/efl_net_server_unix.c
@@ -173,7 +173,7 @@ _efl_net_server_unix_efl_net_server_fd_socket_activate(Eo *o, Efl_Net_Server_Uni
173 char buf[INET6_ADDRSTRLEN + sizeof("[]:65536")]; 173 char buf[INET6_ADDRSTRLEN + sizeof("[]:65536")];
174 Eina_Bool listening; 174 Eina_Bool listening;
175 Eina_Error err; 175 Eina_Error err;
176 struct sockaddr_storage *addr; 176 struct sockaddr_storage addr;
177 socklen_t addrlen; 177 socklen_t addrlen;
178 SOCKET fd; 178 SOCKET fd;
179 179