patch-channels_c 904 B

1234567891011121314151617181920212223242526272829
  1. --- openssh-5.2p1.orig/channels.c 2009-02-14 06:28:21.000000000 +0100
  2. +++ openssh-5.2p1/channels.c 2009-09-18 12:29:28.000000000 +0200
  3. @@ -411,7 +411,7 @@ channel_free(Channel *c)
  4. if (cc->abandon_cb != NULL)
  5. cc->abandon_cb(c, cc->ctx);
  6. TAILQ_REMOVE(&c->status_confirms, cc, entry);
  7. - bzero(cc, sizeof(*cc));
  8. + memset(cc, 0, sizeof(*cc));
  9. xfree(cc);
  10. }
  11. if (c->filter_cleanup != NULL && c->filter_ctx != NULL)
  12. @@ -2447,7 +2447,7 @@ channel_input_status_confirm(int type, u
  13. return;
  14. cc->cb(type, c, cc->ctx);
  15. TAILQ_REMOVE(&c->status_confirms, cc, entry);
  16. - bzero(cc, sizeof(*cc));
  17. + memset(cc, 0, sizeof(*cc));
  18. xfree(cc);
  19. }
  20. @@ -2941,7 +2941,7 @@ channel_connect_ctx_free(struct channel_
  21. xfree(cctx->host);
  22. if (cctx->aitop)
  23. freeaddrinfo(cctx->aitop);
  24. - bzero(cctx, sizeof(*cctx));
  25. + memset(cctx, 0, sizeof(*cctx));
  26. cctx->host = NULL;
  27. cctx->ai = cctx->aitop = NULL;
  28. }