There's no "client" object, in both cases. There's only "nd".
This wasn't noticed before, as the context object is currently not actually
used by the log macros.
if (nd->state == NDISC_STATE_IDLE)
return 0;
- log_ndisc(client, "Stopping IPv6 Router Solicitation client");
+ log_ndisc(nd, "Stopping IPv6 Router Solicitation client");
ndisc_reset(nd);
nd->state = NDISC_STATE_IDLE;
(void) sd_event_source_set_description(nd->timeout, "ndisc-timeout");
- log_ndisc(client, "Started IPv6 Router Solicitation client");
+ log_ndisc(ns, "Started IPv6 Router Solicitation client");
return 0;
fail: