mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Make nfscl_mtofh() return ENXIO when *nfhpp == NULL.
r317272 introduced a case where nfscl_mtofh() could return 0 when *nfhpp is NULL. This patch makes it return ENXIO for this case. MFC after: 1 week
This commit is contained in:
parent
391aba32e6
commit
46adb5dcf8
1 changed files with 1 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ nfscl_mtofh(struct nfsrv_descript *nd, struct nfsfh **nfhpp,
|
|||
if (*++tl != 0) {
|
||||
nd->nd_flag |= ND_NOMOREDATA;
|
||||
flag = 0;
|
||||
error = ENXIO; /* Return ENXIO so *nfhpp isn't used. */
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue