cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl crashes when trying to scp over socks4

From: <menner_at_arcor.de>
Date: Sat, 14 Jun 2008 13:42:57 +0200 (CEST)

curl version 7.18.2 with libssh2 version 0.18 and 0.19pre on Solaris 10 sparc

Immediatelly after establishing a connection to the socks4 proxy, curl crashes.

The reason is that in sendf.c Curl_write() and Curl_read() try to talk ssh to the socks proxy.

My fix for sendf.c is :
362c362
< else if(conn->protocol & PROT_SCP)

---
>   else if((conn->protocol & PROT_SCP) && (conn->proto.sshc.state > SSH_STOP))
364c364
<   else if(conn->protocol & PROT_SFTP)
---
>   else if(conn->protocol & PROT_SFTP) && (conn->proto.sshc.state > SSH_STOP))
578c578
<   else if(conn->protocol & (PROT_SCP|PROT_SFTP)) {
---
>   else if((conn->protocol & (PROT_SCP|PROT_SFTP)) && (conn->proto.sshc.state > SSH_STOP)) {
Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und spannende Dokus in der Arcor-Videothek. Infos unter www.arcor.de/tv
Received on 2008-06-14