Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Properly handle data queued in the SSL layer #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stud.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,9 @@ static void ssl_read(struct ev_loop *loop, ev_io *w, int revents) {
char * buf = ringbuffer_write_ptr(&ps->ring_ssl2clear);
t = SSL_read(ps->ssl, buf, RING_DATA_LEN);

if (SSL_pending(ps->ssl))
ev_feed_event(loop, w, EV_READ);

/* Fix CVE-2009-3555. Disable reneg if started by client. */
if (ps->renegotiation) {
shutdown_proxy(ps, SHUTDOWN_SSL);
Expand Down