#ifdef WITH_SNMP
free(client->auth);
+#ifdef WITH_ACCOUNTING
free(client->acct);
#endif
+#endif
free(client);
}
memset(client->auth, 0, sizeof(*client->auth));
}
+#ifdef WITH_ACCOUNTING
if (!client->acct) {
client->acct = rad_malloc(sizeof(*client->acct));
memset(client->acct, 0, sizeof(*client->acct));
}
-
+#endif
client->number = tree_num_max;
tree_num_max++;
c->auth = rad_malloc(sizeof(*c->auth));
memset(c->auth, 0, sizeof(*c->auth));
+#ifdef WITH_ACCOUNTING
c->acct = rad_malloc(sizeof(*c->acct));
memset(c->acct, 0, sizeof(*c->acct));
#endif
+#endif
memset(&cl_ip4addr, 0, sizeof(cl_ip4addr));
memset(&cl_ip6addr, 0, sizeof(cl_ip6addr));