From 9f1718e159173f6f3c2bdfb6f649fd7fed058214 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 5 Jan 2019 13:17:32 +0100 Subject: [PATCH] Revert "sftp: Set error if invalid session pointer is passed to sftp_new()" This reverts commit d011b780c37b7f475095e116d21278d331eeca30. --- src/sftp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index 8400d1f2..1fd2f4bc 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -100,10 +100,9 @@ static void sftp_ext_free(sftp_ext ext) { sftp_session sftp_new(ssh_session session) { - sftp_session sftp = NULL; + sftp_session sftp; if (session == NULL) { - ssh_set_error_invalid(session); return NULL; }