diff options
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 8fa248c8cb..31775bf5f4 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; diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index fa3d28cf44..5ee7897867 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, conn_snum_used); + sharecount = load_usershare_shares(NULL, connections_snum_used); unbecome_root(); for(i=0;i < sharecount;i++) { |