Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
ec1d33b7
Commit
ec1d33b7
authored
Jul 24, 2003
by
Per Cederqvist
Browse files
(get_real_username): Update the STAT_IDENT_QUEUE and
STAT_PROCESSED_IDENT statistics.
parent
ea48de0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/rfc931.c
View file @
ec1d33b7
/*
* $Id: rfc931.c,v 1.2
5
2003/07/
12 22:26:34
ceder Exp $
* $Id: rfc931.c,v 1.2
6
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment