Re: (22) Invalid argument

From: Duane Wessels <wessels@dont-contact.us>
Date: Fri, 31 Jan 97 09:36:25 -0800

igor@ibank.ru writes:

>re,
>
>Anybody can explain following message?
>
>While trying to retrieve the URL: ftp://www.ecs.es/
>
>The following FTP error was encountered:
> * www.ecs.es (port 21): (22) Invalid argument
>
>This means that:
> A network socket error occurred. Please try again.
>
>Why not "timeout" or something like but so? Invalid argument?

If you had mentioned which version you're running, I could
tell you whether or not you need to apply this patch:

Index: ftpget.c
===================================================================
RCS file: /surf1/CVS/squid/src/ftpget.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -w -u -r1.47 -r1.48
--- ftpget.c 1996/10/09 15:34:27 1.47
+++ ftpget.c 1996/10/09 17:37:09 1.48
@@ -1,5 +1,5 @@
 /*
- * $Id: ftpget.c,v 1.47 1996/10/09 15:34:27 wessels Exp $
+ * $Id: ftpget.c,v 1.48 1996/10/09 17:37:09 wessels Exp $
  *
  * DEBUG: section 0 FTP Retrieval
  * AUTHOR: Harvest Derived
@@ -860,6 +860,7 @@
     if (outgoingTcpAddr.s_addr) {
        struct sockaddr_in sock;
 
+ memset(&sock, '\0', sizeof(struct sockaddr_in));
        sock.sin_family = AF_INET;
        sock.sin_addr = outgoingTcpAddr;
        sock.sin_port = 0;

Duane W.
Received on Fri Jan 31 1997 - 10:04:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:13 MST