View | Details | Raw Unified | Return to bug 260046
Collapse All | Expand All

(-)sys/fs/nfsserver/nfs_nfsdserv.c (-2 / +4 lines)
Lines 6077-6086 nfsrvd_listxattr(struct nfsrv_descript *nd, __unused i Link Here
6077
		if (cookie2 < cookie)
6077
		if (cookie2 < cookie)
6078
			nd->nd_repstat = NFSERR_BADXDR;
6078
			nd->nd_repstat = NFSERR_BADXDR;
6079
	}
6079
	}
6080
	retlen = NFSX_HYPER + 2 * NFSX_UNSIGNED;
6081
	if (nd->nd_repstat == 0 && len == 0 && len2 < retlen)
6082
		nd->nd_repstat = NFSERR_TOOSMALL;
6080
	if (nd->nd_repstat == 0) {
6083
	if (nd->nd_repstat == 0) {
6081
		/* Now copy the entries out. */
6084
		/* Now copy the entries out. */
6082
		retlen = NFSX_HYPER + 2 * NFSX_UNSIGNED;
6085
		if (len == 0) {
6083
		if (len == 0 && retlen <= len2) {
6084
			/* The cookie was at eof. */
6086
			/* The cookie was at eof. */
6085
			NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 *
6087
			NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 *
6086
			    NFSX_UNSIGNED);
6088
			    NFSX_UNSIGNED);

Return to bug 260046