diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-13 11:50:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-13 15:45:36 +0100 |
commit | 1399e6bdf52d2ef08d1cea918a171108c502900a (patch) | |
tree | 3726c790f8354742f877cfd6c2d0f135f4d5c908 /source3/smbd | |
parent | 1cf54ef4a69e78dff5a812d447b0f385b56c5ebd (diff) | |
download | samba-1399e6bdf52d2ef08d1cea918a171108c502900a.tar.gz samba-1399e6bdf52d2ef08d1cea918a171108c502900a.tar.bz2 samba-1399e6bdf52d2ef08d1cea918a171108c502900a.zip |
s3:param: don't reference conn_snum_used directly in load_usershare_shares()
This uses the same logic as lp_killunused().
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/lanman.c | 2 | ||||
-rw-r--r-- | source3/smbd/msdfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 292ebf4385..8fa248c8cb 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); + count = load_usershare_shares(sconn, conn_snum_used); unbecome_root(); data_len = fixed_len = string_len = 0; diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index de700423ae..fa3d28cf44 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1491,7 +1491,7 @@ struct junction_map *enum_msdfs_links(struct smbd_server_connection *sconn, /* Ensure all the usershares are loaded. */ become_root(); load_registry_shares(); - sharecount = load_usershare_shares(sconn); + sharecount = load_usershare_shares(sconn, conn_snum_used); unbecome_root(); for(i=0;i < sharecount;i++) { |