s3-util_sid use ARRAY_SIZE() to ensure we never overflow the dom_sid
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Sep 2010 04:05:59 +0000 (14:05 +1000)
committerJeremy Allison <jra@samba.org>
Tue, 14 Sep 2010 21:48:49 +0000 (14:48 -0700)
commit72a8ea4d1545190bad85ee9f2216499e78b3625a
tree6dce3794568cabe605225852c2699f97c8b47728
parent9d44688681bc196baf1bccbdf84092ffc0510bb7
s3-util_sid use ARRAY_SIZE() to ensure we never overflow the dom_sid

This ensures that this, unlike the MAXSUBAUTHS macro, can't get
out of sync with the structure.

Andrew Bartlett
source3/lib/util_sid.c