diff options
author | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:12:20 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2009-06-21 18:12:20 +1000 |
commit | f7288d77e4e705cbbc12c2ad55ed50f9de9a87e2 (patch) | |
tree | 77f63923d1bc97e2aeda861699e1d2d00d645eda /monitor.c | |
parent | 51dbe503bf92ee38f003ffde4bb0a0d85c438ea7 (diff) |
- andreas@cvs.openbsd.org 2009/05/27 06:31:25
[canohost.h canohost.c]
Add clear_cached_addr(), needed for upcoming changes allowing the peer
address to change.
ok markus@
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor.c,v 1.101 2009/02/12 03:26:22 djm Exp $ */ | 1 | /* $OpenBSD: monitor.c,v 1.102 2009/05/25 06:48:01 andreas Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -100,7 +100,6 @@ extern Newkeys *current_keys[]; | |||
100 | extern z_stream incoming_stream; | 100 | extern z_stream incoming_stream; |
101 | extern z_stream outgoing_stream; | 101 | extern z_stream outgoing_stream; |
102 | extern u_char session_id[]; | 102 | extern u_char session_id[]; |
103 | extern Buffer input, output; | ||
104 | extern Buffer auth_debug; | 103 | extern Buffer auth_debug; |
105 | extern int auth_debug_init; | 104 | extern int auth_debug_init; |
106 | extern Buffer loginmsg; | 105 | extern Buffer loginmsg; |
@@ -1670,13 +1669,14 @@ monitor_apply_keystate(struct monitor *pmonitor) | |||
1670 | 1669 | ||
1671 | /* Network I/O buffers */ | 1670 | /* Network I/O buffers */ |
1672 | /* XXX inefficient for large buffers, need: buffer_init_from_string */ | 1671 | /* XXX inefficient for large buffers, need: buffer_init_from_string */ |
1673 | buffer_clear(&input); | 1672 | buffer_clear(packet_get_input()); |
1674 | buffer_append(&input, child_state.input, child_state.ilen); | 1673 | buffer_append(packet_get_input(), child_state.input, child_state.ilen); |
1675 | memset(child_state.input, 0, child_state.ilen); | 1674 | memset(child_state.input, 0, child_state.ilen); |
1676 | xfree(child_state.input); | 1675 | xfree(child_state.input); |
1677 | 1676 | ||
1678 | buffer_clear(&output); | 1677 | buffer_clear(packet_get_output()); |
1679 | buffer_append(&output, child_state.output, child_state.olen); | 1678 | buffer_append(packet_get_output(), child_state.output, |
1679 | child_state.olen); | ||
1680 | memset(child_state.output, 0, child_state.olen); | 1680 | memset(child_state.output, 0, child_state.olen); |
1681 | xfree(child_state.output); | 1681 | xfree(child_state.output); |
1682 | } | 1682 | } |