1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

server: allow custom server banners (bug #83)

This commit is contained in:
Aris Adamantiadis
2014-02-01 18:00:01 +01:00
parent fdaa42da1a
commit 671f1979a6
3 changed files with 12 additions and 2 deletions

View File

@@ -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) {