1
0

patch-schnorr_c 824 B

1234567891011121314151617181920212223242526272829
  1. --- openssh-5.3p1.orig/schnorr.c 2009-03-07 02:01:47.000000000 +0100
  2. +++ openssh-5.3p1/schnorr.c 2009-12-05 12:10:08.000000000 +0100
  3. @@ -101,7 +101,7 @@ schnorr_hash(const BIGNUM *p, const BIGN
  4. SCHNORR_DEBUG_BN((h, "%s: h = ", __func__));
  5. out:
  6. buffer_free(&b);
  7. - bzero(digest, digest_len);
  8. + memset(digest, 0, digest_len);
  9. xfree(digest);
  10. digest_len = 0;
  11. if (success == 0)
  12. @@ -451,7 +451,7 @@ hash_buffer(const u_char *buf, u_int len
  13. success = 0;
  14. out:
  15. EVP_MD_CTX_cleanup(&evp_md_ctx);
  16. - bzero(digest, sizeof(digest));
  17. + memset(digest, 0, sizeof(digest));
  18. digest_len = 0;
  19. return success;
  20. }
  21. @@ -544,7 +544,7 @@ modp_group_free(struct modp_group *grp)
  22. BN_clear_free(grp->p);
  23. if (grp->q != NULL)
  24. BN_clear_free(grp->q);
  25. - bzero(grp, sizeof(*grp));
  26. + memset(grp, 0, sizeof(*grp));
  27. xfree(grp);
  28. }