- clean the data structures in the privileged process

This commit is contained in:
Jan F 2011-02-02 10:18:01 +01:00
parent f32d86bd8a
commit ee23b09ac6
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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 <jchadima@redhat.com> - 5.6p1-27 + 0.9.2-29
* Tue Feb 2 2011 Jan F. Chadima <jchadima@redhat.com> - 5.6p1-28 + 0.9.2-29
- clean the data structures in the privileged process
* Tue Jan 25 2011 Jan F. Chadima <jchadima@redhat.com> - 5.6p1-25 + 0.9.2-29