starttls: use the client connid instead of the FD for opening the channel with ssld

This commit is contained in:
William Pitcock 2016-03-24 20:33:54 -05:00
parent 80a0125f36
commit 704279e429

View file

@ -95,7 +95,7 @@ mr_starttls(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
sendto_one_numeric(client_p, RPL_STARTTLS, form_str(RPL_STARTTLS));
send_queued(client_p);
ctl = start_ssld_accept(client_p->localClient->F, F[1], rb_get_fd(F[0]));
ctl = start_ssld_accept(client_p->localClient->F, F[1], client_p->localClient->connid);
if (ctl != NULL)
{
client_p->localClient->F = F[0];