summaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index b9ff7aa..0ef1e62 100644
--- a/main.c
+++ b/main.c
@@ -240,8 +240,10 @@ int main(int argc, char ** argv)
if (m_close(childpipe[0]) == DROPBEAR_FAILURE) {
dropbear_exit("Couldn't close socket");
}
+
/* start the session */
- svr_session(childsock, childpipe[1], &remoteaddr);
+ svr_session(childsock, childpipe[1],
+ getaddrhostname(&remoteaddr));
/* don't return */
assert(0);
}