patch-session_c 468 B

1234567891011
  1. --- openssh-5.3p1.orig/session.c 2009-08-20 08:20:50.000000000 +0200
  2. +++ openssh-5.3p1/session.c 2009-12-05 12:10:19.000000000 +0100
  3. @@ -1859,7 +1859,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;