summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-12-03 13:41:12 -0500
committerJeff Layton <jlayton@samba.org>2012-12-04 06:52:04 -0500
commit7dacd96a24edf9ab2e3d7ed798bd28bba5425349 (patch)
treee46de1977a20c9e47ee11852ec189853496b48be
parent7e3149fe1529f0043f4fdf60082ea359ae8d656f (diff)
downloadcifs-utils-7dacd96a24edf9ab2e3d7ed798bd28bba5425349.tar.gz
cifs-utils-7dacd96a24edf9ab2e3d7ed798bd28bba5425349.tar.bz2
cifs-utils-7dacd96a24edf9ab2e3d7ed798bd28bba5425349.zip
getcifsacl: use "size" instead of reconverting original field to host endian
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r--getcifsacl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/getcifsacl.c b/getcifsacl.c
index 626f83c..ac3674c 100644
--- a/getcifsacl.c
+++ b/getcifsacl.c
@@ -249,11 +249,11 @@ print_ace(struct cifs_ace *pace, char *end_of_acl, int raw)
size = le16toh(pace->size);
/* 16 == size of cifs_ace when cifs_sid has no subauths */
- if (le16toh(pace->size) < 16)
+ if (size < 16)
return;
/* validate that we do not go past end of acl */
- if (end_of_acl < (char *)pace + le16toh(pace->size))
+ if (end_of_acl < (char *)pace + size)
return;
printf("ACL:");