blob: 49e7e892c78b840b4f715fe8080bacb9af45dd24 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- src/network.c.orig 2019-06-13 09:13:42 UTC
+++ src/network.c
@@ -2013,6 +2013,13 @@ static int sockent_client_connect(socken
continue;
}
+ status = sendto(client->fd, "", 1, 0, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
+ if (status != 1) {
+ close(client->fd);
+ client->fd = -1;
+ continue;
+ }
+
client->addr = calloc(1, sizeof(*client->addr));
if (client->addr == NULL) {
ERROR("network plugin: calloc failed.");
|