libssh: fixed dereference in statvfs access

The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS
handling fails.

Fixes #2142
This commit is contained in:
Nikos Mavrogiannopoulos 2017-12-04 09:24:06 +01:00
Родитель 8dad32bcfb
Коммит 9185307522
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -998,7 +998,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
sshc->actualcode = CURLE_QUOTE_ERROR; sshc->actualcode = CURLE_QUOTE_ERROR;
break; break;
} }
else { else if (statvfs) {
char *tmp = aprintf("statvfs:\n" char *tmp = aprintf("statvfs:\n"
"f_bsize: %llu\n" "f_frsize: %llu\n" "f_bsize: %llu\n" "f_frsize: %llu\n"
"f_blocks: %llu\n" "f_bfree: %llu\n" "f_blocks: %llu\n" "f_bfree: %llu\n"