~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correctly cast uid and gid sentinel values.
[fwd]
/
identify.c
diff --git
a/identify.c
b/identify.c
index
4b22043
..
265c071
100644
(file)
--- a/
identify.c
+++ b/
identify.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: identify.c,v 1.
5 1999/10/10 16:45:34
mdw Exp $
+ * $Id: identify.c,v 1.
7 2002/02/22 23:43:32
mdw Exp $
*
* Identifies and logs the client of a connection
*
*
* Identifies and logs the client of a connection
*
@@
-29,6
+29,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: identify.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: identify.c,v $
+ * Revision 1.7 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
+ * Revision 1.6 2001/06/22 19:36:49 mdw
+ * Enlarge the identity buffer.
+ *
* Revision 1.5 1999/10/10 16:45:34 mdw
* Modified to use new mLib resolver and ident client.
*
* Revision 1.5 1999/10/10 16:45:34 mdw
* Modified to use new mLib resolver and ident client.
*
@@
-95,8
+101,8
@@
typedef struct id {
sel_timer t; /* Timeout selector */
bres_client r; /* Backgd resolver client block */
ident_request i; /* Ident client block */
sel_timer t; /* Timeout selector */
bres_client r; /* Backgd resolver client block */
ident_request i; /* Ident client block */
- char host[
64];
/* Resolved hostname */
- char user[
32
]; /* Authenticated client user */
+ char host[
128];
/* Resolved hostname */
+ char user[
64
]; /* Authenticated client user */
} id;
#define S_HOST 1u /* Read the hostname from resolver */
} id;
#define S_HOST 1u /* Read the hostname from resolver */
@@
-134,7
+140,7
@@
static void id_done(id *i)
/* --- Dispose of the block --- */
REFFD_DEC(i->q.r);
/* --- Dispose of the block --- */
REFFD_DEC(i->q.r);
- free(i);
+
x
free(i);
}
/* --- @id_res@ --- *
}
/* --- @id_res@ --- *