summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-11-05 20:40:55 +0000
committerRichard Sharpe <sharpe@samba.org>2002-11-05 20:40:55 +0000
commit31124420b7aa712adb478053894a14efde0a7c97 (patch)
treeee315621933bda89e9840e37d36275461df76b24 /source3/utils
parent46cc36920314ca14f0135f505151baa022eaad4f (diff)
downloadsamba-31124420b7aa712adb478053894a14efde0a7c97.tar.gz
samba-31124420b7aa712adb478053894a14efde0a7c97.tar.bz2
samba-31124420b7aa712adb478053894a14efde0a7c97.zip
A small fix by Andy Thomas. Now that incrementing the Auth index has
been pushed into a macro, things do not work so well. Move the increment out of the array index. (This used to be commit 39136827d135c91e42ec2b36f420262b1b18093c)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/profiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 70ac8ffcc0..e7ffab9101 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -445,7 +445,8 @@ int get_sid(DOM_SID *sid, char *sid_str)
return 1;
}
- SIVAL(&sid->sub_auths[i++], 0, auth);
+ SIVAL(&sid->sub_auths[i], 0, auth);
+ i++;
lstr = strchr(lstr + 1, '-');
}