diff options
author | Richard PALO <richard@NetBSD.org> | 2015-09-19 08:36:31 +0200 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2015-09-21 14:16:59 -0400 |
commit | 25613c1d425cf3953d010bbbe294d40990b5f45e (patch) | |
tree | 45498fbc17f3326729c8db0c52b7382e4e244475 /usr/src | |
parent | 6b1aed11aada50610fd9f5a9e033c24ca7ee5f0c (diff) | |
download | illumos-joyent-25613c1d425cf3953d010bbbe294d40990b5f45e.tar.gz |
6106 attr_to_xattr_view should return XATTR_VIEW_INVALID when encountering invalid attr
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/common/xattr/xattr_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |