Don't free the socket address if soaccept() / pru_accept() doesn't

return one.
This commit is contained in:
Bill Fenner 1999-01-25 16:53:53 +00:00
parent de6f543955
commit ec42cbfc24
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43195

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94
* $Id: uipc_syscalls.c,v 1.52 1999/01/24 01:15:58 dillon Exp $
* $Id: uipc_syscalls.c,v 1.53 1999/01/24 03:49:58 dillon Exp $
*/
#include "opt_compat.h"
@ -290,6 +290,7 @@ accept1(p, uap, compat)
error = copyout((caddr_t)&namelen,
(caddr_t)uap->anamelen, sizeof (*uap->anamelen));
}
if (sa)
FREE(sa, M_SONAME);
splx(s);
return (error);