Fixup build after recent getsock changes

This commit is contained in:
Mateusz Guzik 2022-09-10 20:40:32 +00:00
parent e66c6b993e
commit 1760a6950a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;