ssld: check conn->plain_fd when setting conn->plain_fd type to RB_FD_SOCKET
This commit is contained in:
parent
a2bc8af8c5
commit
a5ddb7df2e
1 changed files with 3 additions and 5 deletions
|
@ -762,11 +762,9 @@ ssl_process_accept(mod_ctl_t * ctl, mod_ctl_buf_t * ctlb)
|
||||||
SetSSL(conn);
|
SetSSL(conn);
|
||||||
|
|
||||||
if(rb_get_type(conn->mod_fd) & RB_FD_UNKNOWN)
|
if(rb_get_type(conn->mod_fd) & RB_FD_UNKNOWN)
|
||||||
{
|
|
||||||
|
|
||||||
rb_set_type(conn->mod_fd, RB_FD_SOCKET);
|
rb_set_type(conn->mod_fd, RB_FD_SOCKET);
|
||||||
}
|
|
||||||
if(rb_get_type(conn->mod_fd) == RB_FD_UNKNOWN)
|
if(rb_get_type(conn->plain_fd) == RB_FD_UNKNOWN)
|
||||||
rb_set_type(conn->plain_fd, RB_FD_SOCKET);
|
rb_set_type(conn->plain_fd, RB_FD_SOCKET);
|
||||||
|
|
||||||
rb_ssl_start_accepted(ctlb->F[0], ssl_process_accept_cb, conn, 10);
|
rb_ssl_start_accepted(ctlb->F[0], ssl_process_accept_cb, conn, 10);
|
||||||
|
@ -792,7 +790,7 @@ ssl_process_connect(mod_ctl_t * ctl, mod_ctl_buf_t * ctlb)
|
||||||
if(rb_get_type(conn->mod_fd) == RB_FD_UNKNOWN)
|
if(rb_get_type(conn->mod_fd) == RB_FD_UNKNOWN)
|
||||||
rb_set_type(conn->mod_fd, RB_FD_SOCKET);
|
rb_set_type(conn->mod_fd, RB_FD_SOCKET);
|
||||||
|
|
||||||
if(rb_get_type(conn->mod_fd) == RB_FD_UNKNOWN)
|
if(rb_get_type(conn->plain_fd) == RB_FD_UNKNOWN)
|
||||||
rb_set_type(conn->plain_fd, RB_FD_SOCKET);
|
rb_set_type(conn->plain_fd, RB_FD_SOCKET);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue