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 | aa5beb63f1b1133c4ad28118ddd33e21198d79bb (patch) | |
tree | 5a01bf54acea72e48c1c12eb172e568e7d59ddb4 | |
parent | 12e7953bf2497eeb7c0bc6585d9fe58b3aabc240 (diff) | |
download | samba-aa5beb63f1b1133c4ad28118ddd33e21198d79bb.tar.gz samba-aa5beb63f1b1133c4ad28118ddd33e21198d79bb.tar.xz samba-aa5beb63f1b1133c4ad28118ddd33e21198d79bb.zip |
make sure we zero the unusued elements in a SID when parsing
-rw-r--r-- | source/lib/util_sid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c index 5dd1d75c701..ad09f912346 100644 --- a/source/lib/util_sid.c +++ b/source/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); |