static int net_serverid_wipedbs(struct net_context *c, int argc,
const char **argv)
{
+ if (!sessionid_init()) {
+ d_printf("failed to open sessionid.tdb\n");
+ return -1;
+ };
+
connections_forall(net_serverid_wipedbs_conn, NULL);
sessionid_traverse(net_serverid_wipedbs_sessionid, NULL);
return 0;
{NULL, NULL, 0, NULL, NULL}
};
- if (!sessionid_init()) {
- d_printf("failed to open sessionid.tdb\n");
- return -1;
- };
-
return net_run_function(c, argc, argv, "net serverid", func);
}