aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-12-04 09:24:06 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-12-04 09:24:45 +0100
commit91853075221767237c5864da25df5a9453858309 (patch)
tree08c54f217f949ced089e2e999390328e10445a95 /lib
parent8dad32bcfb277cdfba47e8e0a5b92a4036f7fd26 (diff)
libssh: fixed dereference in statvfs access
The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS handling fails. Fixes #2142
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh-libssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssh-libssh.c b/lib/ssh-libssh.c
index 1277324bf..23f28dca4 100644
--- a/lib/ssh-libssh.c
+++ b/lib/ssh-libssh.c
@@ -998,7 +998,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
sshc->actualcode = CURLE_QUOTE_ERROR;
break;
}
- else {
+ else if (statvfs) {
char *tmp = aprintf("statvfs:\n"
"f_bsize: %llu\n" "f_frsize: %llu\n"
"f_blocks: %llu\n" "f_bfree: %llu\n"