patch-channels_c 904 B

1234567891011121314151617181920212223242526272829
  1. --- openssh-5.3p1.orig/channels.c 2009-08-28 03:02:37.000000000 +0200
  2. +++ openssh-5.3p1/channels.c 2009-12-05 12:10:19.000000000 +0100
  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. @@ -2449,7 +2449,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. @@ -2943,7 +2943,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. }