Changeset 848 for trunk/xcache.c


Ignore:
Timestamp:
2012-03-26T13:14:09+02:00 (2 years ago)
Author:
moo
Message:

fix md5 digest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r847 r848  
    146146    xc_entry_data_php_t *p; 
    147147    for (p = php->cache->phps[php->hvalue]; p; p = p->next) { 
    148         if (memcmp(&php->md5, &p->md5, sizeof(php->md5)) == 0) { 
     148        if (memcmp(&php->md5.digest, &p->md5.digest, sizeof(php->md5.digest)) == 0) { 
    149149            p->hits ++; 
    150150            return p; 
     
    170170        xc_entry_data_php_t *p; 
    171171        for (p = *pp; p; pp = &(p->next), p = p->next) { 
    172             if (memcmp(&php->md5, &p->md5, sizeof(php->md5)) == 0) { 
     172            if (memcmp(&php->md5.digest, &p->md5.digest, sizeof(php->md5.digest)) == 0) { 
    173173                /* unlink */ 
    174174                *pp = p->next; 
     
    10751075static inline xc_hash_value_t xc_php_hash_md5(xc_entry_data_php_t *php TSRMLS_DC) /* {{{ */ 
    10761076{ 
    1077     return HASH_STR_S(php->md5.digest, sizeof(php->md5)); 
     1077    return HASH_STR_S(php->md5.digest, sizeof(php->md5.digest)); 
    10781078} 
    10791079/* }}} */ 
     
    11111111    { 
    11121112        char md5str[33]; 
    1113         make_digest(md5str, (unsigned char *) php->md5); 
     1113        make_digest(md5str, (unsigned char *) php->md5.digest); 
    11141114        TRACE("md5 %s", md5str); 
    11151115    } 
Note: See TracChangeset for help on using the changeset viewer.