1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-09-11 13:30:43 +03:00

client: Remove superfluous strlen()

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-09-25 15:44:31 +02:00
parent cde13b0f00
commit 2fad391456

View File

@@ -180,7 +180,6 @@ int ssh_send_banner(ssh_session session, int server)
if (server == 1) {
if (session->opts.custombanner == NULL){
len = strlen(banner);
session->serverbanner = strdup(banner);
if (session->serverbanner == NULL) {
goto end;