1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: libsmb: Now we only have namecache_store_sa(), rename it back to namecache_store().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Jeremy Allison 2020-08-27 12:17:07 -07:00 committed by Noel Power
parent 2989d736c4
commit 170051d61e
5 changed files with 8 additions and 8 deletions

View File

@ -676,7 +676,7 @@ NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode);
/* The following definitions come from libsmb/namecache.c */
bool namecache_store_sa(const char *name,
bool namecache_store(const char *name,
int name_type,
size_t num_names,
struct samba_sockaddr *sa_list);

View File

@ -1104,7 +1104,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
mem_ctx, &nt_version, &dc_name, &r);
if (NT_STATUS_IS_OK(status)) {
store_cache = true;
namecache_store_sa(dc_name,
namecache_store(dc_name,
NBT_NAME_SERVER,
1,
&dclist[i].sa);
@ -1136,7 +1136,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx,
map_netlogon_samlogon_response(r);
namecache_store_sa(tmp_dc_name,
namecache_store(tmp_dc_name,
NBT_NAME_SERVER,
1,
&dclist[i].sa);

View File

@ -220,7 +220,7 @@ static char *namecache_key(TALLOC_CTX *ctx,
* ip addresses being stored
**/
bool namecache_store_sa(const char *name,
bool namecache_store(const char *name,
int name_type,
size_t num_names,
struct samba_sockaddr *sa_list)

View File

@ -3486,7 +3486,7 @@ NTSTATUS internal_resolve_name(TALLOC_CTX *ctx,
TALLOC_FREE(frame);
return status;
}
namecache_store_sa(name,
namecache_store(name,
name_type,
ret_count,
sa_converted_list);

View File

@ -1437,7 +1437,7 @@ static bool dcip_check_name(TALLOC_CTX *mem_ctx,
if (*name == NULL) {
return false;
}
namecache_store_sa(*name, 0x20, 1, &sa);
namecache_store(*name, 0x20, 1, &sa);
DEBUG(10,("dcip_check_name: flags = 0x%x\n", (unsigned int)ads->config.flags));
@ -1498,14 +1498,14 @@ static bool dcip_check_name(TALLOC_CTX *mem_ctx,
if (*name == NULL) {
return false;
}
namecache_store_sa(*name, 0x20, 1, &sa);
namecache_store(*name, 0x20, 1, &sa);
return True;
}
/* try node status request */
if (name_status_find(domain->name, 0x1c, 0x20, &sa.u.ss, nbtname) ) {
namecache_store_sa(nbtname, 0x20, 1, &sa);
namecache_store(nbtname, 0x20, 1, &sa);
if (name != NULL) {
*name = talloc_strdup(mem_ctx, nbtname);