Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 1998 12:10:09 +1030
From:      Greg Lehey <grog@lemis.com>
To:        mgrommet@insolwwb.net, freebsd-questions@FreeBSD.ORG
Subject:   ftp access (was: CERT Advisory CA-98-13)
Message-ID:  <19981223121009.N85005@freebie.lemis.com>
In-Reply-To: <A199D70FC96DD211AD100060976792610359BA@ISIMAIL>; from mike grommet on Tue, Dec 22, 1998 at 10:42:48AM -0600
References:  <A199D70FC96DD211AD100060976792610359BA@ISIMAIL>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981223121009.N85005>