patch-session_c 468 B

1234567891011
  1. --- openssh-5.2p1.orig/session.c 2009-01-28 06:29:49.000000000 +0100
  2. +++ openssh-5.2p1/session.c 2009-09-18 12:25:29.000000000 +0200
  3. @@ -1865,7 +1865,7 @@ session_unused(int id)
  4. fatal("%s: insane session id %d (max %d nalloc %d)",
  5. __func__, id, options.max_sessions, sessions_nalloc);
  6. }
  7. - bzero(&sessions[id], sizeof(*sessions));
  8. + memset(&sessions[id], 0, sizeof(*sessions));
  9. sessions[id].self = id;
  10. sessions[id].used = 0;
  11. sessions[id].chanid = -1;