cURL / Mailing Lists / curl-library / Single Mail


Re: curl lib sftp crashing

From: Daniel Stenberg <>
Date: Wed, 1 Aug 2012 23:15:26 +0200 (CEST)

On Tue, 31 Jul 2012, madhusudana yn wrote:

> I am not sure of if all of those
> libssh2_session_last_errno(sshc->ssh_session)) calls need to be fixed. In my
> case, I have faced the crash at the point you have guessed. Right now we
> have put a NULL check in libssh2_session_last_errno API and return error in
> case the pointer is null although that's not the right way of doing it.

It is not. That function should never be called with a NULL argument.

List admin:
Received on 2012-08-01