diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-08-15 17:34:03 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-08-15 17:34:03 +0000 |
| commit | 4b9c2fa1fb4b27cf1b2bb0027a8f205836ffd186 (patch) | |
| tree | 32aef02c3686520aecc3aa49eaf63a2e87d198b0 | |
| parent | b5addd8564a070a3b415a00bbbdcc175449c4a8b (diff) | |
Notes
| -rw-r--r-- | sys/kern/uipc_syscalls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index bcc065d2259f..2191574c0617 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -254,8 +254,10 @@ accept1(td, uap, compat) error = copyin(uap->anamelen, &namelen, sizeof (namelen)); if(error) goto done2; - if (namelen < 0) - return (EINVAL); + if (namelen < 0) { + error = EINVAL; + goto done2; + } } error = fgetsock(td, uap->s, &head, &fflag); if (error) |
