diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-12-23 17:00:15 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-12-23 17:00:15 +0000 |
commit | 9d4318370418b66796d370cb1fa05d49c28920b0 (patch) | |
tree | ed87ba82226d3eddce366b14a29d71464ebe4921 /svr-session.c | |
parent | e7677a5e8ddaa4787659a1a9e5320369c94564e4 (diff) |
Log the IP along with auth success/fail attempts
--HG--
extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
Diffstat (limited to 'svr-session.c')
-rw-r--r-- | svr-session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svr-session.c b/svr-session.c index 8dc8a44..408209d 100644 --- a/svr-session.c +++ b/svr-session.c @@ -74,7 +74,8 @@ static const struct ChanType *svr_chantypes[] = { NULL /* Null termination is mandatory. */ }; -void svr_session(int sock, int childpipe, char* remotehost) { +void svr_session(int sock, int childpipe, + char* remotehost, char *addrstring) { struct timeval timeout; @@ -83,6 +84,7 @@ void svr_session(int sock, int childpipe, char* remotehost) { /* Initialise server specific parts of the session */ svr_ses.childpipe = childpipe; + svr_ses.addrstring = addrstring; svr_authinitialise(); chaninitialise(svr_chantypes); svr_chansessinitialise(); |