mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-10 06:23:01 +03:00
Reformat sftp_new_channel
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
@@ -173,8 +173,10 @@ error:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sftp_session sftp_new_channel(ssh_session session, ssh_channel channel){
|
||||
sftp_session sftp;
|
||||
sftp_session
|
||||
sftp_new_channel(ssh_session session, ssh_channel channel)
|
||||
{
|
||||
sftp_session sftp = NULL;
|
||||
|
||||
if (session == NULL) {
|
||||
return NULL;
|
||||
@@ -183,7 +185,6 @@ sftp_session sftp_new_channel(ssh_session session, ssh_channel channel){
|
||||
sftp = calloc(1, sizeof(struct sftp_session_struct));
|
||||
if (sftp == NULL) {
|
||||
ssh_set_error_oom(session);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -191,7 +192,6 @@ sftp_session sftp_new_channel(ssh_session session, ssh_channel channel){
|
||||
if (sftp->ext == NULL) {
|
||||
ssh_set_error_oom(session);
|
||||
SAFE_FREE(sftp);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user