Ticket #107 (closed defect)
send_exiting: debugdump wrong location
|Reported by:||anonymous||Owned by:||bagder|
In transport.c:send_existing() is the following statement
debugdump(session, "libssh2_transport_write send()", &p->outbuf[p->osent],
at the wrong location. If debugging is enabled debugdump() may try to dump the memory at p->outbuf which is set to NULL in case the remainder of the package was sent. This cause a SigSegV.
Solution: move the statement before the "if (rc == length)"-block.