From owner-freebsd-questions Tue Dec 22 17:41:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA04771 for freebsd-questions-outgoing; Tue, 22 Dec 1998 17:41:50 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA04761 for ; Tue, 22 Dec 1998 17:41:43 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id MAA05486; Wed, 23 Dec 1998 12:10:08 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id MAA11846; Wed, 23 Dec 1998 12:10:09 +1030 (CST) Message-ID: <19981223121009.N85005@freebie.lemis.com> Date: Wed, 23 Dec 1998 12:10:09 +1030 From: Greg Lehey To: mgrommet@insolwwb.net, freebsd-questions@FreeBSD.ORG Subject: ftp access (was: CERT Advisory CA-98-13) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from mike grommet on Tue, Dec 22, 1998 at 10:42:48AM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 22 December 1998 at 10:42:48 -0600, mike grommet wrote: > Trying to patch a FreeBSD 3.0 - Release from 10/27 > > but, the patch given in the CERT advisory looks very very strange... > > ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/CA-98-13/patch > > heck this stuff doesnt even look like valid C code at all > if ((m =3D m_pullup(m, sizeof (struct ip))) =3D=3D 0) > > I thought it might be a funky browswer problem, so I used lynx to grab the > patch, and ended > up with the same text... > > Could someone please post a valid patch? Yes, it's a ``funky brows[w]er problem''. It converted the patch into quoted-printable. The simple answer is: use the correct tools. The correct tool is called ftp. Here's the patch. I would really not recommend using it, since your browser may break that too. Index: ip_input.c =================================================================== RCS file: /home/cvsup/freebsd/CVS/src/sys/netinet/ip_input.c,v retrieving revision 1.104 retrieving revision 1.105 diff -u -r1.104 -r1.105 --- ip_input.c 1998/10/27 09:19:03 1.104 +++ ip_input.c 1998/11/11 21:17:59 1.105 @@ -513,7 +513,7 @@ */ if (ip->ip_off & (IP_MF | IP_OFFMASK | IP_RF)) { if (m->m_flags & M_EXT) { /* XXX */ - if ((m = m_pullup(m, sizeof (struct ip))) == 0) { + if ((m = m_pullup(m, hlen)) == 0) { ipstat.ips_toosmall++; #ifdef IPDIVERT frag_divert_port = 0; -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message