mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
client: Remove superfluous strlen()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -180,7 +180,6 @@ int ssh_send_banner(ssh_session session, int server)
|
|||||||
|
|
||||||
if (server == 1) {
|
if (server == 1) {
|
||||||
if (session->opts.custombanner == NULL){
|
if (session->opts.custombanner == NULL){
|
||||||
len = strlen(banner);
|
|
||||||
session->serverbanner = strdup(banner);
|
session->serverbanner = strdup(banner);
|
||||||
if (session->serverbanner == NULL) {
|
if (session->serverbanner == NULL) {
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
Reference in New Issue
Block a user