Changeset 450


Ignore:
Timestamp:
Jun 25, 2014, 8:32:15 PM (10 years ago)
Author:
katerina
Message:

Fix for ticket #351 (incorrect memset).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_checksum.c

    r445 r450  
    475475 
    476476  /* Clean up state data: */
    477   memset(context, 0, sizeof(context));
     477  memset(context, 0, sizeof(SHA256_CTX));
    478478  usedspace = 0;
    479479}
     
    490490    sh_util_base64_enc ((unsigned char *)buffer, digest,  SHA256_DIGEST_LENGTH);
    491491  } else {
    492     memset(context, 0, sizeof(context));
     492    memset(context, 0, sizeof(SHA256_CTX));
    493493  }
    494494  memset(digest, 0, SHA256_DIGEST_LENGTH);
Note: See TracChangeset for help on using the changeset viewer.