summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
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);