diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-31 09:32:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-31 09:32:45 +0000 |
commit | ab0b4e6f581d583c8572a6ba351536eacc240db1 (patch) | |
tree | af5fbe445ebfe1560f13a70114d45faf1ddfe840 /source3/lib/util_sid.c | |
parent | dcff12797e3e27abd378c9a7e7c0d036860a86ef (diff) | |
download | samba-ab0b4e6f581d583c8572a6ba351536eacc240db1.tar.gz samba-ab0b4e6f581d583c8572a6ba351536eacc240db1.tar.bz2 samba-ab0b4e6f581d583c8572a6ba351536eacc240db1.zip |
make sure we zero the unusued elements in a SID when parsing
(This used to be commit aa5beb63f1b1133c4ad28118ddd33e21198d79bb)
Diffstat (limited to 'source3/lib/util_sid.c')
-rw-r--r-- | source3/lib/util_sid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 5dd1d75c70..ad09f91234 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -365,6 +365,9 @@ BOOL sid_parse(char *inbuf, size_t len, DOM_SID *sid) { int i; if (len < 8) return False; + + ZERO_STRUCTP(sid); + sid->sid_rev_num = CVAL(inbuf, 0); sid->num_auths = CVAL(inbuf, 1); memcpy(sid->id_auth, inbuf+2, 6); |