diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-02-01 18:00:01 +0100 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-02-04 16:04:26 +0100 |
| commit | 497bd313642232b8f680384f758eeb3b4fbf8524 (patch) | |
| tree | f5c5db6f17053f5a89ab31e440cabc0df3be10f8 /src/bind.c | |
| parent | 8ed0c0b3c87ae7e9865ea68495657f646565fd84 (diff) | |
server: allow custom server banners (bug #83)
Diffstat (limited to 'src/bind.c')
| -rw-r--r-- | src/bind.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |
