~7-luca/skylable/master

« back to all changes in this revision

Viewing changes to server/src/tools/sxreport-server/anonymize.c

  • Committer: Alberto Wu
  • Date: 2015-10-29 16:39:50 UTC
  • Revision ID: git-v1:4d0837a887d92ed148e87a6e7bb7f4096046dc98
Allow building with valgrind hints (--enable-vghints)

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
    } else {
334
334
        WARN("[Using random key for anonymization]");
335
335
        /* When there is no working hashfs use a random key */
336
 
        if(sxi_rand_pseudo_bytes(hmac_key, sizeof(hmac_key)) == -1) {
 
336
        if(sxi_rand_pseudo_bytes(hmac_key, sizeof(hmac_key))) {
337
337
            return -1;
338
338
        }
339
339
    }