Subject: Re: [libssh2] #196: using libssh2_channel_read crushes

Re: [libssh2] #196: using libssh2_channel_read crushes

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Thu, 18 Nov 2010 11:13:06 -0000

#196: using libssh2_channel_read crushes
---------------------------------------------------------------------------------------+
  Reporter: www.google.com/accounts/o8/id?id=aitoawk50cbnsiuuqgylsi_oyi14_ymtafn1cjc | Owner: bagder
      Type: defect | Status: closed
  Priority: high | Milestone: 1.2.7
 Component: API | Version: 1.2.7
Resolution: invalid | Keywords:
    Blocks: | Blocked By:
---------------------------------------------------------------------------------------+
Changes (by www.google.com/accounts/o8/id?id=aitoawk50cbnsiuuqgylsi_oyi14_ymtafn1cjc):

  * status: accepted => closed
  * resolution: => invalid

Comment:

 I was trying to use a channel after closing it with :

 libssh2_channel_close(channel);
 libssh2_channel_free(channel);

 still it was nice if the API detect a bad channel (NULL) and not crush .

-- 
Ticket URL: <http://trac.libssh2.org/ticket/196#comment:3>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-11-18