Commit ec1d33b7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_real_username): Update the STAT_IDENT_QUEUE and

	STAT_PROCESSED_IDENT statistics.
parent ea48de0a
/*
* $Id: rfc931.c,v 1.25 2003/07/12 22:26:34 ceder Exp $
* $Id: rfc931.c,v 1.26 2003/07/24 08:37:41 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -55,6 +55,7 @@
#include "param.h"
#include "rfc931.h"
#include "unused.h"
#include "stats.h"
#ifdef HAVE_LIBAUTHUSER
# define USE_IF_LIBAUTHUSER(x) x
......@@ -82,7 +83,10 @@ get_real_username(struct isc_scb *USE_IF_LIBAUTHUSER(scb),
return NULL;
time(&before);
update_stat(STAT_IDENT_QUEUE, 1);
result = auth_tcpuser3(inlocal, inremote, local, remote, 20);
update_stat(STAT_IDENT_QUEUE, -1);
update_stat(STAT_PROCESSED_IDENT, -1);
if (result == NULL && errno == ETIMEDOUT)
kom_log ("Identd request to %s timed out.\n", hostname);
else
......
Markdown is supported
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