Don't free the socket address if soaccept() / pru_accept() doesn't
return one.
This commit is contained in:
parent
de6f543955
commit
ec42cbfc24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43195
@ -34,7 +34,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94
|
* @(#)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"
|
#include "opt_compat.h"
|
||||||
@ -290,7 +290,8 @@ accept1(p, uap, compat)
|
|||||||
error = copyout((caddr_t)&namelen,
|
error = copyout((caddr_t)&namelen,
|
||||||
(caddr_t)uap->anamelen, sizeof (*uap->anamelen));
|
(caddr_t)uap->anamelen, sizeof (*uap->anamelen));
|
||||||
}
|
}
|
||||||
FREE(sa, M_SONAME);
|
if (sa)
|
||||||
|
FREE(sa, M_SONAME);
|
||||||
splx(s);
|
splx(s);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user