eina debug - check return value of syscall for errors

this should fix CID 1377550
This commit is contained in:
Carsten Haitzler 2017-07-23 18:40:04 +09:00
parent 4095165385
commit c69f9d2837
1 changed files with 1 additions and 1 deletions

View File

@ -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)