-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
From: 	Jonathan Larmour
Sent: 	12 September 1997 15:08
To: 	jrg@demon.net; Marc Delisle; squid-users@nlanr.net
Subject: 	Re: FTP problem?
>>> Could people try this URL and see if they also get squid 
returning a
>>> "No Object Data" error:
>>>
>>>  ftp://ftp.demon.co.uk/pub/mirrors/turnpike/win95/demon.scp
I've traced it to a seg fault in ftpget.c at line 925 in 
mime_get_type():
    /* now check for another extension */
    *t = '\0';
>>> if (!strcmp(enc, "x-gzip"))
        (void) 0;
Okay, the patch is actually trivial. This is against 1.1.16.
*** src/ftpget.c.jif    Fri Sep 12 15:14:10 1997
- --- src/ftpget.c        Fri Sep 12 15:16:02 1997
***************
*** 922,932 ****
      }
      /* now check for another extension */
      *t = '\0';
!     if (!strcmp(enc, "x-gzip"))
        (void) 0;
!     else if (!strcmp(enc, "x-compress"))
        (void) 0;
!     else
        goto mime_get_type_done;
      xfree(ext);
      ext = xstrdup(t + 1);
- --- 922,932 ----
      }
      /* now check for another extension */
      *t = '\0';
!     if (enc && !strcmp(enc, "x-gzip"))
        (void) 0;
!     else if (enc && !strcmp(enc, "x-compress"))
        (void) 0;
!     else
        goto mime_get_type_done;
      xfree(ext);
      ext = xstrdup(t + 1);
Origin, 323 Cambridge Science Park, Cambridge, UK. Tel:+44 (1223) 
423355
 ---[ It is impossible to enjoy idling thoroughly unless one has ]---
 ------------[ plenty of work to do - Jerome K. Jerome ]-------------
Fight spam! http://spam.abuse.net/ These opinions are all my fault
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBNBlRDIYLUv2rigzBEQK53QCfZXto1F4DVq1SjPuej0a51at/v+4An3BK
5JcqYrAIM8xUkGxfFz0DaxMN
=brhk
-----END PGP SIGNATURE-----
Received on Fri Sep 12 1997 - 07:30:00 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:01 MST