Changeset 988 for vendor/current/source3/libsmb/namecache.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libsmb/namecache.c
r740 r988 38 38 */ 39 39 40 static char *namecache_key(const char *name,40 static char *namecache_key(const char *name, 41 41 int name_type) 42 42 { 43 char *keystr ;43 char *keystr = NULL; 44 44 asprintf_strupper_m(&keystr, NBTKEY_FMT, name, name_type); 45 45 … … 157 157 } 158 158 159 if (!gencache_get(key, &value, &timeout)) {159 if (!gencache_get(key, talloc_tos(), &value, &timeout)) { 160 160 DEBUG(5, ("no entry for %s#%02X found.\n", name, name_type)); 161 161 SAFE_FREE(key); … … 171 171 172 172 SAFE_FREE(key); 173 SAFE_FREE(value);173 TALLOC_FREE(value); 174 174 175 175 return *num_names > 0; /* true only if some ip has been fetched */ … … 240 240 { 241 241 char addr[INET6_ADDRSTRLEN]; 242 char *keystr ;242 char *keystr = NULL; 243 243 244 244 print_sockaddr(addr, sizeof(addr), keyip); … … 295 295 return False; 296 296 297 if (!gencache_get(key, &value, &timeout)) {297 if (!gencache_get(key, talloc_tos(), &value, &timeout)) { 298 298 DEBUG(5, ("namecache_status_fetch: no entry for %s found.\n", 299 299 key)); … … 307 307 strlcpy(srvname_out, value, 16); 308 308 SAFE_FREE(key); 309 SAFE_FREE(value);309 TALLOC_FREE(value); 310 310 return True; 311 311 }
Note:
See TracChangeset
for help on using the changeset viewer.