Date: Mon, 10 May 1999 06:19:23 -0700 (PDT) From: Don Lewis <Don.Lewis@tsc.tdk.com> To: current@freebsd.org Subject: patch for descriptor leak caused by KKIS.05051999.003b exploit Message-ID: <199905101319.GAA23237@salsa.gv.tsc.tdk.com>
next in thread | raw e-mail | index | archive | help
Could someone give the attached patch a try in -current? It fixes the file descriptor leak that the KKIS.05051999.003b exploit causes. This fix seems to work fine in -stable. I'd like to commit it to the current tree and merge it into -stable before the 3.2 code freeze. Index: uipc_usrreq.c =================================================================== RCS file: /home/ncvs/src/sys/kern/uipc_usrreq.c,v retrieving revision 1.43 diff -u -u -r1.43 uipc_usrreq.c --- uipc_usrreq.c 1999/04/28 11:37:07 1.43 +++ uipc_usrreq.c 1999/05/09 23:50:45 @@ -367,6 +367,9 @@ unp_shutdown(unp); } + if (control && error != 0) + unp_dispose(control); + release: if (control) m_freem(control); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905101319.GAA23237>
