mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
Revert "sftp: Set error if invalid session pointer is passed to sftp_new()"
This reverts commit d011b780c3.
This commit is contained in:
@@ -100,10 +100,9 @@ static void sftp_ext_free(sftp_ext ext) {
|
|||||||
|
|
||||||
sftp_session sftp_new(ssh_session session)
|
sftp_session sftp_new(ssh_session session)
|
||||||
{
|
{
|
||||||
sftp_session sftp = NULL;
|
sftp_session sftp;
|
||||||
|
|
||||||
if (session == NULL) {
|
if (session == NULL) {
|
||||||
ssh_set_error_invalid(session);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user