forked from enlightenment/efl
eina debug - check return value of syscall for errors
this should fix CID 1377550
This commit is contained in:
parent
4095165385
commit
c69f9d2837
|
@ -458,7 +458,7 @@ eina_debug_remote_connect(int port)
|
|||
|
||||
//Prepare the sockaddr_in structure
|
||||
server.sin_family = AF_INET;
|
||||
inet_pton(AF_INET, "127.0.0.1", &server.sin_addr.s_addr);
|
||||
if (inet_pton(AF_INET, "127.0.0.1", &server.sin_addr.s_addr) != 1) goto err;
|
||||
server.sin_port = htons(port);
|
||||
|
||||
if (connect(fd, (struct sockaddr *)&server, sizeof(server)) < 0)
|
||||
|
|
Loading…
Reference in New Issue