mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Minor improvements in lease-tools
Limit max interface name to fit into buffer. Make sure pointer have to be always positive. Close socket after received reply.
This commit is contained in:
committed by
Simon Kelley
parent
282eab7952
commit
2b38e3823b
@@ -376,9 +376,12 @@ int send_release_packet(const char* iface, struct dhcp6_packet* packet)
|
||||
sleep(1);
|
||||
continue;
|
||||
}
|
||||
|
||||
close(sock);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
close(sock);
|
||||
fprintf(stderr, "Response timed out\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user