Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/libsmb/namecache.c

    r740 r988  
    3838 */
    3939
    40 static char* namecache_key(const char *name,
     40static char *namecache_key(const char *name,
    4141                                int name_type)
    4242{
    43         char *keystr;
     43        char *keystr = NULL;
    4444        asprintf_strupper_m(&keystr, NBTKEY_FMT, name, name_type);
    4545
     
    157157        }
    158158
    159         if (!gencache_get(key, &value, &timeout)) {
     159        if (!gencache_get(key, talloc_tos(), &value, &timeout)) {
    160160                DEBUG(5, ("no entry for %s#%02X found.\n", name, name_type));
    161161                SAFE_FREE(key);
     
    171171
    172172        SAFE_FREE(key);
    173         SAFE_FREE(value);
     173        TALLOC_FREE(value);
    174174
    175175        return *num_names > 0; /* true only if some ip has been fetched */
     
    240240{
    241241        char addr[INET6_ADDRSTRLEN];
    242         char *keystr;
     242        char *keystr = NULL;
    243243
    244244        print_sockaddr(addr, sizeof(addr), keyip);
     
    295295                return False;
    296296
    297         if (!gencache_get(key, &value, &timeout)) {
     297        if (!gencache_get(key, talloc_tos(), &value, &timeout)) {
    298298                DEBUG(5, ("namecache_status_fetch: no entry for %s found.\n",
    299299                                        key));
     
    307307        strlcpy(srvname_out, value, 16);
    308308        SAFE_FREE(key);
    309         SAFE_FREE(value);
     309        TALLOC_FREE(value);
    310310        return True;
    311311}
Note: See TracChangeset for help on using the changeset viewer.