From ee23b09ac6b02efcf877d0db1932f7e2efb0055f Mon Sep 17 00:00:00 2001 From: Jan F Date: Wed, 2 Feb 2011 10:18:01 +0100 Subject: [PATCH] - clean the data structures in the privileged process --- openssh-5.6p1-audit5.patch | 10 +++++----- openssh.spec | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openssh-5.6p1-audit5.patch b/openssh-5.6p1-audit5.patch index 1c400fc..de0c83f 100644 --- a/openssh-5.6p1-audit5.patch +++ b/openssh-5.6p1-audit5.patch @@ -286,10 +286,10 @@ diff -up openssh-5.6p1/packet.c.audit5 openssh-5.6p1/packet.c + if (state == NULL) + return; + -+ if (state->connection_in >= 0) -+ close(state->connection_in); -+ if ((state->connection_in != state->connection_out) && (state->connection_out >= 0)) -+ close(state->connection_out); ++// if (state->connection_in >= 0) ++// close(state->connection_in); ++// if ((state->connection_in != state->connection_out) && (state->connection_out >= 0)) ++// close(state->connection_out); + + cipher_cleanup(&state->receive_context); + cipher_cleanup(&state->send_context); @@ -303,7 +303,7 @@ diff -up openssh-5.6p1/packet.c.audit5 openssh-5.6p1/packet.c + newkeys_destroy(state->newkeys[MODE_OUT]); + mac_destroy(state->packet_discard_mac); +// TAILQ_HEAD(, packet) outgoing; -+ memset(state, 0, sizeof(state)); ++// memset(state, 0, sizeof(state)); +} + +void diff --git a/openssh.spec b/openssh.spec index 96a1650..879166d 100644 --- a/openssh.spec +++ b/openssh.spec @@ -71,7 +71,7 @@ # Do not forget to bump pam_ssh_agent_auth release if you rewind the main package release to 1 %define openssh_ver 5.6p1 -%define openssh_rel 27 +%define openssh_rel 28 %define pam_ssh_agent_ver 0.9.2 %define pam_ssh_agent_rel 29 @@ -603,7 +603,7 @@ fi %endif %changelog -* Tue Feb 1 2011 Jan F. Chadima - 5.6p1-27 + 0.9.2-29 +* Tue Feb 2 2011 Jan F. Chadima - 5.6p1-28 + 0.9.2-29 - clean the data structures in the privileged process * Tue Jan 25 2011 Jan F. Chadima - 5.6p1-25 + 0.9.2-29