1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

another fix for #120 (sendto: invalid argument)

This commit is contained in:
Steffen Vogel 2017-09-23 23:45:39 -06:00
parent 76d625cdf4
commit b03748ac2c

View file

@ -365,6 +365,9 @@ int socket_write(struct node *n, struct sample *smps[], unsigned cnt)
if (ret < 0)
return -1;
if (wbytes <= 0)
return 0;
/* Send message */
bytes = sendto(s->sd, data, wbytes, 0, (struct sockaddr *) &s->remote, sizeof(s->remote));
if (bytes < 0)