Fixup build after recent getsock changes
This commit is contained in:
parent
e66c6b993e
commit
1760a6950a
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user