curl-library
RE: curl lib sftp crashing
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 Aug 2012 18:34:20 +0200 (CEST)
Date: Thu, 2 Aug 2012 18:34:20 +0200 (CEST)
On Thu, 2 Aug 2012, Joe Mason wrote:
>> If the problem still exists with a recent libcurl, can you then please try
>> to help us provide a recipe to repeat the problem? It looks like
>> 'sshc->sftp_session' suddenly has turned into NULL and that's certainly a
>> lethal problem there.
>
> In the source code I'm looking at (about a week old) it passes
> sshc->ssh_session instead of sftp_session. It's definitely sounding like
> that's the problem.
Nah, it was just me who mistyped. sshc->ssh_session should be passed in to
libssh2_session_last_error() and it should never be NULL when done so. I don't
think the problem is that obvious since this tends to work for most people...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-08-02