switch to handle_open_conn right after handshake

So we don't re-enter the handle_handsahke and re-do the loop on
fnmatch etc.  This way, once we're successfully past the handshake,
we'll re-enter no handle_open_conn.
This commit is contained in:
Omar Polo 2021-02-01 20:27:08 +00:00
parent 92da82858b
commit b06f80cdf4
1 changed files with 2 additions and 2 deletions

View File

@ -294,9 +294,9 @@ handle_handshake(struct pollfd *fds, struct client *c)
/* h->domain != NULL ? h->domain : "(null)"); */
if (h->domain != NULL) {
c->state = handle_open_conn;
c->host = h;
handle_open_conn(fds, c);
c->state = handle_open_conn;
c->state(fds, c);
return;
}