git: 1760a6950a70 - main - Fixup build after recent getsock changes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Sep 2022 20:41:03 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=1760a6950a70b8459d9d637bd7ba786f60f080d3
commit 1760a6950a70b8459d9d637bd7ba786f60f080d3
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-09-10 20:40:32 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-09-10 20:40:43 +0000
Fixup build after recent getsock changes
---
sys/kern/uipc_syscalls.c | 2 +-
sys/netinet/sctp_syscalls.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index c2ba9535472a..9c5c9719c204 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -348,7 +348,7 @@ kern_accept4(struct thread *td, int s, struct sockaddr **name,
&headfp, &fcaps);
if (error != 0)
return (error);
- fflag = atomic_load_int(&fp->f_flag);
+ fflag = atomic_load_int(&headfp->f_flag);
head = headfp->f_data;
if (!SOLISTENING(head)) {
error = EINVAL;
diff --git a/sys/netinet/sctp_syscalls.c b/sys/netinet/sctp_syscalls.c
index a58ba9c231f3..5ae1da98e5da 100644
--- a/sys/netinet/sctp_syscalls.c
+++ b/sys/netinet/sctp_syscalls.c
@@ -157,7 +157,7 @@ sys_sctp_peeloff(td, uap)
&headfp);
if (error != 0)
goto done2;
- fflag = atomic_load_int(&fp->f_flag);
+ fflag = atomic_load_int(&headfp->f_flag);
head = headfp->f_data;
if (head->so_proto->pr_protocol != IPPROTO_SCTP) {
error = EOPNOTSUPP;