The socket was not closed when the sendto got failed. --- gdhcp/ipv4ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdhcp/ipv4ll.c b/gdhcp/ipv4ll.c index 17ab3d5..033ef81 100644 --- a/gdhcp/ipv4ll.c +++ b/gdhcp/ipv4ll.c @@ -111,7 +111,7 @@ int ipv4ll_send_arp_packet(uint8_t* source_eth, uint32_t source_ip, n = sendto(fd, &p, sizeof(p), 0, (struct sockaddr*) &dest, sizeof(dest)); if (n < 0) - return -errno; + n = -errno; close(fd); -- 1.7.10.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman