diff options
author | Günther Deschner <gd@samba.org> | 2013-09-06 18:08:23 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-09-09 10:08:20 +0200 |
commit | 4b8b385042ace68c4ec59fea81bf8b284b34c356 (patch) | |
tree | 19793553675f428aec31a9825d8b522b881092a3 | |
parent | 5978eab3cdbbc8971ed7f0fd9f0aadb02c98aba7 (diff) | |
download | samba-4b8b385042ace68c4ec59fea81bf8b284b34c356.tar.gz |
s3-sessionid: move sessionid init call to the only function where it is needed.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r-- | source3/utils/net_serverid.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/net_serverid.c b/source3/utils/net_serverid.c index 01109b9ffad..7d50ab1d9de 100644 --- a/source3/utils/net_serverid.c +++ b/source3/utils/net_serverid.c @@ -113,6 +113,11 @@ static int net_serverid_wipedbs_sessionid(struct db_record *rec, 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; @@ -150,10 +155,5 @@ int net_serverid(struct net_context *c, int argc, const char **argv) {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); } |