From 25613c1d425cf3953d010bbbe294d40990b5f45e Mon Sep 17 00:00:00 2001 From: Richard PALO Date: Sat, 19 Sep 2015 08:36:31 +0200 Subject: 6106 attr_to_xattr_view should return XATTR_VIEW_INVALID when encountering invalid attr Reviewed by: Gary Mills Approved by: Dan McDonald --- usr/src/common/xattr/xattr_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/src') diff --git a/usr/src/common/xattr/xattr_common.c b/usr/src/common/xattr/xattr_common.c index a40cd03909..e9b511bd99 100644 --- a/usr/src/common/xattr/xattr_common.c +++ b/usr/src/common/xattr/xattr_common.c @@ -115,7 +115,7 @@ xattr_view_t attr_to_xattr_view(f_attr_t attr) { if (attr >= F_ATTR_ALL || attr < 0) - return (NULL); + return (XATTR_VIEW_INVALID); return (xattrs[attr].x_xattr_view); } -- cgit v1.2.3