patch-clientloop_c 590 B

1234567891011121314151617181920
  1. --- openssh-5.3p1.orig/clientloop.c 2009-08-28 03:21:07.000000000 +0200
  2. +++ openssh-5.3p1/clientloop.c 2009-12-05 12:10:19.000000000 +0100
  3. @@ -488,7 +488,7 @@ client_global_request_reply(int type, u_
  4. gc->cb(type, seq, gc->ctx);
  5. if (--gc->ref_count <= 0) {
  6. TAILQ_REMOVE(&global_confirms, gc, entry);
  7. - bzero(gc, sizeof(*gc));
  8. + memset(gc, 0, sizeof(*gc));
  9. xfree(gc);
  10. }
  11. @@ -769,7 +769,7 @@ process_cmdline(void)
  12. int cancel_port;
  13. Forward fwd;
  14. - bzero(&fwd, sizeof(fwd));
  15. + memset(&fwd, 0, sizeof(fwd));
  16. fwd.listen_host = fwd.connect_host = NULL;
  17. leave_raw_mode();