diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-13 12:24:03 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-13 15:45:36 +0100 |
commit | ae7d8778415234eb85df1aceb024875691ccb8ef (patch) | |
tree | 16b8529ce890ac81b51b34d11965ae2ed45d0063 /source3/smbd/lanman.c | |
parent | cefb797434ef738870b3f2447fdbeea361bdea57 (diff) | |
download | samba-ae7d8778415234eb85df1aceb024875691ccb8ef.tar.gz |
s3:smbd: use connections_snum_used() instead of conn_snum_used() for load_usershare_shares()
Before removing the share security descriptor, we should make sure there're
really no active users anymore.
metze
Diffstat (limited to 'source3/smbd/lanman.c')
-rw-r--r-- | source3/smbd/lanman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 8fa248c8cb5..31775bf5f45 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2092,7 +2092,7 @@ static bool api_RNetShareEnum(struct smbd_server_connection *sconn, /* Ensure all the usershares are loaded. */ become_root(); load_registry_shares(); - count = load_usershare_shares(sconn, conn_snum_used); + count = load_usershare_shares(NULL, connections_snum_used); unbecome_root(); data_len = fixed_len = string_len = 0; |