Skip to content

Commit

Permalink
fix(core): fix compilation of pkcs5_pbkdf2.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Jun 16, 2020
1 parent 348a408 commit d39208e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SoObjects/SOGo/pkcs5_pbkdf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ pkcs5_pbkdf2(const char *pass, size_t pass_len, const uint8_t *salt,
key += r;
key_len -= r;
};
explicit_bzero(asalt, salt_len + 4);
bzero(asalt, salt_len + 4);
free(asalt);
explicit_bzero(d1, sizeof(d1));
explicit_bzero(d2, sizeof(d2));
explicit_bzero(obuf, sizeof(obuf));
bzero(d1, sizeof(d1));
bzero(d2, sizeof(d2));
bzero(obuf, sizeof(obuf));

return 0;

Expand Down

0 comments on commit d39208e

Please sign in to comment.