X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fs_auth.c;h=3b1999b03b3bc7c6b7994f06c3297634da43359d;hp=7a2c89920e1539731759d21ba1b2ee07cc281a26;hb=e894de73de8e7846934ecdf4d7cc3a14d5635ce6;hpb=360129dded6e402703ed26f74fffef3ede507d16 diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 7a2c899..3b1999b 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -155,7 +155,8 @@ typedef enum { /** Sends response \a r (from #ReportType) to client \a c. */ #define sendheader(c, r) \ - ssl_send(cli_fd(c), cli_socket(c).ssl, HeaderMessages[(r)].message, HeaderMessages[(r)].length) + sendrawto_one(c, "%s", HeaderMessages[(r)].message) + //ssl_send(cli_fd(c), cli_socket(c).ssl, HeaderMessages[(r)].message, HeaderMessages[(r)].length) /** Enumeration of IAuth connection flags. */ enum IAuthFlag @@ -1328,12 +1329,6 @@ void start_auth(struct Client* client) /* Set unregistered numnick. */ auth_set_numnick(auth); - /* Try to start DNS lookup. */ - start_dns_query(auth); - - /* Try to start ident lookup. */ - start_auth_query(auth); - /* Set required client inputs for users. */ if (IsUserPort(client)) { cli_user(client) = make_user(client); @@ -1345,6 +1340,12 @@ void start_auth(struct Client* client) if(start_iauth_query(auth)) return; } + /* Try to start DNS lookup. */ + start_dns_query(auth); + + /* Try to start ident lookup. */ + start_auth_query(auth); + /* Add client to GlobalClientList. */ add_client_to_list(client); @@ -2303,8 +2304,10 @@ static int iauth_cmd_done_account(struct IAuth *iauth, struct Client *cli, } /* If account has a creation timestamp, use it. */ assert(cli_user(cli) != NULL); - if (params[0][len] == ':') + if (params[0][len] == ':') { cli_user(cli)->acc_create = strtoul(params[0] + len + 1, NULL, 10); + params[0][len] = '\0'; + } /* Copy account name to User structure. */ ircd_strncpy(cli_user(cli)->account, params[0], ACCOUNTLEN);