mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Spell 2 as SHUT_RDWR when used as an argument to soshutdown().
This commit is contained in:
parent
79a32d2730
commit
ecd189d420
2 changed files with 2 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ nfs_disconnect(struct nfsmount *nmp)
|
|||
if (nmp->nm_so) {
|
||||
so = nmp->nm_so;
|
||||
nmp->nm_so = NULL;
|
||||
soshutdown(so, 2);
|
||||
soshutdown(so, SHUT_RDWR);
|
||||
soclose(so);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -566,7 +566,7 @@ nfsrv_zapsock(struct nfssvc_sock *slp)
|
|||
so->so_rcv.sb_flags &= ~SB_UPCALL;
|
||||
so->so_upcall = NULL;
|
||||
so->so_upcallarg = NULL;
|
||||
soshutdown(so, 2);
|
||||
soshutdown(so, SHUT_RDWR);
|
||||
closef(fp, NULL);
|
||||
if (slp->ns_nam)
|
||||
FREE(slp->ns_nam, M_SONAME);
|
||||
|
|
|
|||
Loading…
Reference in a new issue