summaryrefslogtreecommitdiffstats
path: root/libssh/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/sftp.c')
-rw-r--r--libssh/sftp.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index bf6ae2a..117ee74 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -1108,17 +1108,20 @@ int buffer_add_attributes(BUFFER *buffer, SFTP_ATTRIBUTES *attr) {
}
-SFTP_ATTRIBUTES *sftp_parse_attr(SFTP_SESSION *session, BUFFER *buf,int expectname){
- switch(session->version){
- case 4:
- return sftp_parse_attr_4(session,buf,expectname);
- case 3:
- return sftp_parse_attr_3(session,buf,expectname);
- default:
- ssh_set_error(session->session,SSH_FATAL,"Version %d unsupported by client",session->server_version);
- return NULL;
- }
- return NULL;
+SFTP_ATTRIBUTES *sftp_parse_attr(SFTP_SESSION *session, BUFFER *buf,
+ int expectname) {
+ switch(session->version) {
+ case 4:
+ return sftp_parse_attr_4(session, buf, expectname);
+ case 3:
+ return sftp_parse_attr_3(session, buf, expectname);
+ default:
+ ssh_set_error(session->session, SSH_FATAL,
+ "Version %d unsupported by client", session->server_version);
+ return NULL;
+ }
+
+ return NULL;
}
/* Get the version of the SFTP protocol supported by the server */