diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-23 18:58:04 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-23 18:58:04 +0200 |
commit | e936694229354244eed3addad14a07f76614e67e (patch) | |
tree | 72821d5d7c5551f91087f30d02255eee75a1a7c6 /package/openssh/patches/patch-session_c | |
parent | eb3c2cf8238c2e09666f2bf4c46389ee4ff80f75 (diff) |
convert bzero to memset, allow root login
Diffstat (limited to 'package/openssh/patches/patch-session_c')
-rw-r--r-- | package/openssh/patches/patch-session_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/openssh/patches/patch-session_c b/package/openssh/patches/patch-session_c new file mode 100644 index 000000000..ea9508cfd --- /dev/null +++ b/package/openssh/patches/patch-session_c @@ -0,0 +1,11 @@ +--- openssh-5.2p1.orig/session.c 2009-01-28 06:29:49.000000000 +0100 ++++ openssh-5.2p1/session.c 2009-09-18 12:25:29.000000000 +0200 +@@ -1865,7 +1865,7 @@ session_unused(int id) + fatal("%s: insane session id %d (max %d nalloc %d)", + __func__, id, options.max_sessions, sessions_nalloc); + } +- bzero(&sessions[id], sizeof(*sessions)); ++ memset(&sessions[id], 0, sizeof(*sessions)); + sessions[id].self = id; + sessions[id].used = 0; + sessions[id].chanid = -1; |