Changeset 250 for trunk/lib/lru_cache.c


Ignore:
Timestamp:
05/05/11 00:00:24 (13 years ago)
Author:
tim
Message:

added key caching
readded SK caching
fixed races and deadlocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lru_cache.c

    r184 r250  
    151151{
    152152  ht->secret = 0;
    153   talloc_free(ht);
     153  talloc_unlink(NULL, ht);
    154154}
    155155
     
    257257    e->index_len = index_len;
    258258
    259     /* Insert at beginning of chain, in a vaguely LRU style */
    260259    e->next = ht->table[hash];
    261260    ht->table[hash] = e;
Note: See TracChangeset for help on using the changeset viewer.