diff options
author | Günther Deschner <gd@samba.org> | 2013-09-06 18:08:23 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-09-18 10:41:23 +0200 |
commit | f83239f5c9386b0928dfb1d01f4946429807b1d0 (patch) | |
tree | 1c35450a10fc9a18aff2aa86eca0e5863b7f8b4a | |
parent | ae1ed0838e4aa959165e1e6d8a6866af23aa7247 (diff) | |
download | samba-f83239f5c9386b0928dfb1d01f4946429807b1d0.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>
(cherry picked from commit 4b8b385042ace68c4ec59fea81bf8b284b34c356)
-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); } |