diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2001-01-31 15:05:44 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2001-01-31 15:05:44 +0000 | 
| commit | a14aaaf23fa8202fe60f5d7ba29dfe842ab5f80d (patch) | |
| tree | 550b7f75e3b5390b2e097437327b9980a083f7b1 /lib/transfer.c | |
| parent | c41c5a0ef236f1eb1a973eeb25f47e848c9e68db (diff) | |
fixed up the telnet to work (using support from Linus Nielsen)
Diffstat (limited to 'lib/transfer.c')
| -rw-r--r-- | lib/transfer.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 09c1262cb..92b56600c 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -161,6 +161,12 @@ _Transfer(struct connectdata *c_conn)    Curl_pgrsTime(data, TIMER_PRETRANSFER);    Curl_speedinit(data); +  if((conn->sockfd == -1) && +     (conn->writesockfd == -1)) { +    /* nothing to read, nothing to write, we're already OK! */ +    return CURLE_OK; +  } +    if (!conn->getheader) {      header = FALSE;      if(conn->size > 0)  | 
