We need to remove this from the global list when we talloc_free() it.
samba_version_string()));
}
+static int winbindd_cli_state_destructor(struct winbindd_cli_state *state)
+{
+ winbindd_remove_client_from_list(state);
+ return 0;
+}
+
/* Call into the source3/winbindd per-client code here, as we have
* already bound to the sockets and accepted the connection at this
* point */
state->last_access = time(NULL);
state->wbsrv_conn = wbsrv_conn;
winbindd_add_client(state);
+ talloc_set_destructor(state, winbindd_cli_state_destructor);
return state;
}