Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!tfs.com!tfs.com!julian From: julian@tfs.com (Julian Elischer) Subject: Re: What was that network patch? Message-ID: <1992Dec8.023908.14086@tfs.com> Organization: TRW Financial Systems References: <50255@shamash.cdc.com> Date: Tue, 8 Dec 1992 02:39:08 GMT Lines: 38 In article <50255@shamash.cdc.com> pbd@runyon.cim.cdc.com (Paul Dokas) writes: >A few weeks ago, someone found a bug in the networking code that caused a >small memory leak. There were patches posted here, but I've lost them. >I do remember that the bug was due to a function having 1 too many arguments. >And that the leak occured during raw socket I/O. > >Could some kind soul please email me the patch. > >-- >#include <std.disclaimer> >#define FULL_NAME "Paul Dokas" >#define EMAIL "pbd@runyon.cim.cdc.com" >/* Just remember, you *WILL* die someday. */ that was me the function is rip_usrreq in netinet/raw_ip.c look for the lines /*ARGSUSED*/ rip_usrreq(so, req, m, nam, rights, control) register struct socket *so; int req; struct mbuf *m, *nam, *rights, *control; { and remove all reference to 'rights' +----------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / On assignment | / \ julian@tfs.com +------>x USA \ in a very strange | ( OZ ) 2118 Milvia st. Berkeley CA. \___ ___ | country ! +- X_.---._/ USA+(510) 704-3137(wk) \_/ \\ v