summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2024-01-13 19:29:58 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2024-01-13 19:29:58 +0000
commit8904cd5c4a20b28c94a47fe7d22589f3a63c45fb (patch)
tree77f54811498a8bbfd7d414a27dda5f8cd52c5b37 /src/ubus.c
parent2dc88de711bd13f33880470cabf28840f07416f0 (diff)
WIP: fix clid_data always truewireguard
Diffstat (limited to 'src/ubus.c')
-rw-r--r--src/ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ubus.c b/src/ubus.c
index 01a83cb..eba32d8 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -397,7 +397,7 @@ void ubus_bcast_dhcpv6_event(const char *type, const struct dhcp_assignment *a,
if (a->iface->ifname)
blobmsg_add_string(&b, "interface", a->iface->ifname);
- if (a->clid_data && a->clid_len) {
+ if (a->clid_len) {
char *duid = blobmsg_alloc_string_buffer(&b, "duid", a->clid_len * 2 + 1);
odhcpd_hexlify(duid, a->clid_data, a->clid_len);
blobmsg_add_string_buffer(&b);