diff options
author | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:17 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-11-07 10:19:17 -0500 |
commit | 034a4baa9f3d496a19dbe3eb46d51cf8ef3adffd (patch) | |
tree | fd6b829d5c53ba66018cbd44c9cba7e8ccbe03a1 | |
parent | 5ba83a1f28d8feb0110a129fa24b8749016f2be7 (diff) | |
download | cifs-utils-034a4baa9f3d496a19dbe3eb46d51cf8ef3adffd.tar.gz cifs-utils-034a4baa9f3d496a19dbe3eb46d51cf8ef3adffd.tar.bz2 cifs-utils-034a4baa9f3d496a19dbe3eb46d51cf8ef3adffd.zip |
getcifsacl: clarify magic number if print_ace
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | getcifsacl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/getcifsacl.c b/getcifsacl.c index da4bb67..083705c 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -208,11 +208,11 @@ print_sid_raw: static void print_ace(struct cifs_ace *pace, char *end_of_acl, int raw) { - /* validate that we do not go past end of acl */ - + /* 16 == size of cifs_ace sans the cifs_sid */ if (le16toh(pace->size) < 16) return; + /* validate that we do not go past end of acl */ if (end_of_acl < (char *)pace + le16toh(pace->size)) return; |