aboutsummaryrefslogtreecommitdiff
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-01 18:00:01 +0100
commit671f1979a6d913938f5ced00779bf99db71f8df5 (patch)
tree0d123cf1c0f11c81714a1b3c3123dc994a787c2b /src/bind.c
parentfdaa42da1a235e8c2c89675f37a9ff012f4ed500 (diff)
downloadlibssh-671f1979a6d913938f5ced00779bf99db71f8df5.tar.gz
libssh-671f1979a6d913938f5ced00779bf99db71f8df5.tar.xz
libssh-671f1979a6d913938f5ced00779bf99db71f8df5.zip
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) {