mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user