From 671f1979a6d913938f5ced00779bf99db71f8df5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 1 Feb 2014 18:00:01 +0100 Subject: server: allow custom server banners (bug #83) --- src/bind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bind.c') 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) { -- cgit