getcifsacl: ensure that we don't overrun the wbcDomainSid when converting
authorJeff Layton <jlayton@samba.org>
Tue, 4 Dec 2012 11:21:06 +0000 (06:21 -0500)
committerJeff Layton <jlayton@samba.org>
Tue, 4 Dec 2012 11:52:04 +0000 (06:52 -0500)
commitbacbbf7c0994bdeaf49234abd07d840673d37e95
treea194ea91c96beee2dba27b332592a86ddf782967
parentc1fd5753a3f996203e4b39158e360f4b799a3254
getcifsacl: ensure that we don't overrun the wbcDomainSid when converting

If we get a SID that contains more than 15 subauthorities, we'll end up
overrunning the struct wbcDomainSid. Just ignore any past 15.

Signed-off-by: Jeff Layton <jlayton@samba.org>
getcifsacl.c