X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/fab71203600b93244b323632e03a31ba4d3da5d9..9df1a2f2b4e3af5e03f85aebea94e25d46231bf4:/identify.c diff --git a/identify.c b/identify.c index 87ba126..f94cc0e 100644 --- a/identify.c +++ b/identify.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: identify.c,v 1.6 2001/06/22 19:36:49 mdw Exp $ + * $Id: identify.c,v 1.8 2003/11/29 20:36:07 mdw Exp $ * * Identifies and logs the client of a connection * @@ -29,6 +29,12 @@ /*----- Revision history --------------------------------------------------* * * $Log: identify.c,v $ + * Revision 1.8 2003/11/29 20:36:07 mdw + * Privileged outgoing connections. + * + * 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. * @@ -130,14 +136,15 @@ static void id_done(id *i) /* --- Report the final result --- */ - fw_log(i->when, "[%s] %s from %s@%s [%s]", + fw_log(i->when, "[%s] %s from %s@%s [%s:%u]", i->q.desc, i->q.act, - i->user, i->host, inet_ntoa(i->q.rsin.sin_addr)); + i->user, i->host, + inet_ntoa(i->q.rsin.sin_addr), (unsigned)ntohs(i->q.rsin.sin_port)); /* --- Dispose of the block --- */ REFFD_DEC(i->q.r); - free(i); + xfree(i); } /* --- @id_res@ --- *