diff options
author | Matt Johnston <matt@ucc.asn.au> | 2009-09-05 11:40:00 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2009-09-05 11:40:00 +0000 |
commit | 4dfb834f7cd153cd90904c36dca314f5516beca2 (patch) | |
tree | f24bc8020ca7edaf72b61e397da70c275fba599a /svr-chansession.c | |
parent | c35e38c5e9387137a7836fa6aa1a6f9a242387cf (diff) |
Move remotehost into svr_ses structure since we can't look it up
once we've forked (the connection socket has been closed).
Fixes inetd mode.
--HG--
extra : convert_revision : 7d5d152ec84fb11a188966c1400d213c908cc511
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index 782e97f..5ecc57f 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -253,12 +253,9 @@ static int newchansess(struct Channel *channel) { static struct logininfo* chansess_login_alloc(struct ChanSess *chansess) { - char *remotehost; struct logininfo * li; - get_socket_address(ses.sock_in, NULL, NULL, &remotehost, NULL, 1); li = login_alloc_entry(chansess->pid, ses.authstate.username, - remotehost, chansess->tty); - m_free(remotehost); + svr_ses.remotehost, chansess->tty); return li; } |