Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 1997 21:46:12 -0800 (PST)
From:      Mike Pritchard <mpp>
To:        freebsd-bugs
Subject:   kern/2886
Message-ID:  <199703060546.VAA14489@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Here is a copy of the misfiled PR# 2886:

>Number:         2886
>Category:       kern
>Synopsis:       mbuf leak in multicast code
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar  5 09:30:01 PST 1997
>Last-Modified:  Wed Mar  5 10:13:55 PST 1997
>Originator:     Chris Csanady
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	

>Description:
The function ip_getmoptions() in ip_output.c alocates an mbuf for the
return of options, but does not dealocate it if it does not succeed.
	

>How-To-Repeat:
Call ip_getmoptions() with an invalid option.
	

>Fix:
*** ip_output.c.old	Fri Feb 28 16:36:11 1997
--- ip_output.c	Wed Mar  5 10:53:04 1997
***************
*** 1256,1261 ****
--- 1256,1262 ----
  		return (0);
  
  	default:
+ 		m_freem(*mp);
  		return (EOPNOTSUPP);
  	}
  }
	

>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Wed Mar 5 10:13:38 PST 1997 
Responsible-Changed-Why:  
Misfiled PR 
>Unformatted:




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