mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
parent
710a8858a9
commit
0229100b6c
@ -148,8 +148,12 @@ int address_pool_acquire(AddressPool *p, unsigned prefixlen, union in_addr_union
|
||||
for (;;) {
|
||||
if (!address_pool_prefix_is_taken(p, &u, prefixlen)) {
|
||||
_cleanup_free_ char *s = NULL;
|
||||
int r;
|
||||
|
||||
r = in_addr_to_string(p->family, &u, &s);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
in_addr_to_string(p->family, &u, &s);
|
||||
log_debug("Found range %s/%u", strna(s), prefixlen);
|
||||
|
||||
*found = u;
|
||||
|
Loading…
x
Reference in New Issue
Block a user