gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 20/125: libssh: fixed dereference in statvfs access


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 20/125: libssh: fixed dereference in statvfs access
Date: Sun, 21 Jan 2018 23:41:15 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 91853075221767237c5864da25df5a9453858309
Author: Nikos Mavrogiannopoulos <address@hidden>
AuthorDate: Mon Dec 4 09:24:06 2017 +0100

    libssh: fixed dereference in statvfs access
    
    The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS
    handling fails.
    
    Fixes #2142
---
 lib/ssh-libssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]