From 8904cd5c4a20b28c94a47fe7d22589f3a63c45fb Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 13 Jan 2024 19:29:58 +0000 Subject: WIP: fix clid_data always true --- src/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ubus.c') 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); -- cgit v1.2.3