| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Before this, leases_ht would store the (temporary) pointer to pubkey
that's given to new_lease() directly. The memory it's pointing to is
overwritten as soon as a new connection comes in however and thus
breaking the hashtable.
Instead make our own copy of the pubkey and store the pointer to that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CC lease.o
In file included from /usr/include/arpa/inet.h:22:0,
from lease.c:3:
lease.c: In function 'new_lease':
lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32'
bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6);
^
lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32'
bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6);
^
lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32'
bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6);
^
lease.c:93:30: error: 'const struct in6_addr' has no member named 's6_addr32'
bool wants_ipv6 = !ipv6 || !IN6_IS_ADDR_UNSPECIFIED(ipv6);
^
lease.c: In function 'leases_refresh':
lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32'
if (!IN6_IS_ADDR_UNSPECIFIED(ipv6))
^
lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32'
if (!IN6_IS_ADDR_UNSPECIFIED(ipv6))
^
lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32'
if (!IN6_IS_ADDR_UNSPECIFIED(ipv6))
^
lease.c:213:10: error: 'const struct in6_addr' has no member named 's6_addr32'
if (!IN6_IS_ADDR_UNSPECIFIED(ipv6))
^
<builtin>: recipe for target 'lease.o' failed
make: *** [lease.o] Error 1
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The CLOCK_MONOTONIC change was reverted:
https://git.kernel.org/torvalds/c/a3ed0e43
|
|
|