diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-07-25 15:14:03 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2011-07-25 15:14:03 +0000 |
| commit | ab941aff19b1518b897a6069831a1e22f1c0261b (patch) | |
| tree | 0173f43eb1d7e6c55a6264ce922350bbd7a4a3d3 /contrib | |
| parent | de046f028e3d69f5a4de9ba91e1f8d811331303d (diff) | |
Notes
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/pf/ftp-proxy/ftp-proxy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/pf/ftp-proxy/ftp-proxy.c b/contrib/pf/ftp-proxy/ftp-proxy.c index 06c848795b8d..1c3e8c6e1ce0 100644 --- a/contrib/pf/ftp-proxy/ftp-proxy.c +++ b/contrib/pf/ftp-proxy/ftp-proxy.c @@ -273,6 +273,12 @@ end_session(struct session *s) logmsg(LOG_INFO, "#%d ending session", s->id); + /* Flush output buffers. */ + if (s->client_bufev && s->client_fd != -1) + evbuffer_write(s->client_bufev->output, s->client_fd); + if (s->server_bufev && s->server_fd != -1) + evbuffer_write(s->server_bufev->output, s->server_fd); + if (s->client_fd != -1) close(s->client_fd); if (s->server_fd != -1) |
