Commit 07d3810d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(prot_a_parse_packet): Disable the session after the initial handshake

	if the dns resolution hasn't completed yet.
parent 78a4bb3c
/* /*
* $Id: prot-a.c,v 0.81 2003/08/04 11:58:27 ceder Exp $ * $Id: prot-a.c,v 0.82 2003/08/05 09:50:57 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association. * Copyright (C) 1991-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -419,9 +419,16 @@ prot_a_parse_packet(Connection *client) ...@@ -419,9 +419,16 @@ prot_a_parse_packet(Connection *client)
isc_flush(client->isc_session); isc_flush(client->isc_session);
isc_set_acceptable_idle(client->isc_session, isc_set_acceptable_idle(client->isc_session,
param.login_timeout); param.login_timeout);
BUG(("[Client %lu is logged on]\n", client->session_no)); BUG(("[Handshake with client %lu completed]\n", client->session_no));
} }
if (client->dns_done == FALSE)
{
isc_disable(client->isc_session);
client->blocked_by_dns = TRUE;
return;
}
switch(client->parse_pos) switch(client->parse_pos)
{ {
case 0: /* Get ref_no */ case 0: /* Get ref_no */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment