cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl lib sftp crashing

From: Daniel Stenberg <daniel_at_haxx.se>
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.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-01