summaryrefslogtreecommitdiffstats
path: root/src/bind.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-02-01 18:00:01 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-02-04 16:04:26 +0100
commit497bd313642232b8f680384f758eeb3b4fbf8524 (patch)
treef5c5db6f17053f5a89ab31e440cabc0df3be10f8 /src/bind.c
parent8ed0c0b3c87ae7e9865ea68495657f646565fd84 (diff)
server: allow custom server banners (bug #83)
Diffstat (limited to 'src/bind.c')
-rw-r--r--src/bind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bind.c b/src/bind.c
index 5234e5b4..8d82d0d4 100644
--- a/src/bind.c
+++ b/src/bind.c
@@ -413,7 +413,8 @@ int ssh_bind_accept_fd(ssh_bind sshbind, ssh_session session, socket_t fd){
}
session->common.log_verbosity = sshbind->common.log_verbosity;
-
+ if(sshbind->banner != NULL)
+ session->opts.custombanner = strdup(sshbind->banner);
ssh_socket_free(session->socket);
session->socket = ssh_socket_new(session);
if (session->socket == NULL) {