s3-auth: Fix system token generation not to dereference pointer as an integer
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Jun 2012 23:30:37 +0000 (09:30 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 15 Jun 2012 07:18:32 +0000 (09:18 +0200)
commit9b3cf96fb042429eaf79ede426e406ea1fa32079
treec00409680babbe277cc9151bea234ea777a2bf41
parentf0c58007588f1e6346f378a13c9d881c25eabbd8
s3-auth: Fix system token generation not to dereference pointer as an integer

This continues on from commit caaebb455cf955f66c2f662c53998c480cb2d6c9
which is marked as being part of bug #8944, ldapsam:trusted and ipasam
and an additional fix for bug #8567
(0528cb5f3a15b72dcb34ece21a3ffb3e7b8d6eb9).

The problem here was that the primary_gid was simply the pointer result
of dom_sid_parse_talloc() cast to a uint32_t (found by the IRIX cc on
the build farm).

Andrew Bartlett
source3/auth/auth_util.c