patch-jpake_c 952 B

1234567891011121314151617181920212223242526272829
  1. --- openssh-5.3p1.orig/jpake.c 2009-03-05 14:58:22.000000000 +0100
  2. +++ openssh-5.3p1/jpake.c 2009-12-05 12:10:19.000000000 +0100
  3. @@ -104,7 +104,7 @@ jpake_free(struct jpake_ctx *pctx)
  4. #define JPAKE_BUF_CLEAR_FREE(v, l) \
  5. do { \
  6. if ((v) != NULL) { \
  7. - bzero((v), (l)); \
  8. + memset((v), 0, (l)); \
  9. xfree(v); \
  10. (v) = NULL; \
  11. (l) = 0; \
  12. @@ -132,7 +132,7 @@ jpake_free(struct jpake_ctx *pctx)
  13. #undef JPAKE_BN_CLEAR_FREE
  14. #undef JPAKE_BUF_CLEAR_FREE
  15. - bzero(pctx, sizeof(pctx));
  16. + memset(pctx, 0, sizeof(pctx));
  17. xfree(pctx);
  18. }
  19. @@ -437,7 +437,7 @@ jpake_check_confirm(const BIGNUM *k,
  20. else if (memcmp(peer_confirm_hash, expected_confirm_hash,
  21. expected_confirm_hash_len) == 0)
  22. success = 1;
  23. - bzero(expected_confirm_hash, expected_confirm_hash_len);
  24. + memset(expected_confirm_hash, 0, expected_confirm_hash_len);
  25. xfree(expected_confirm_hash);
  26. debug3("%s: success = %d", __func__, success);
  27. return success;