summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_lsa_hnd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-22 19:45:17 +0000
committerJeremy Allison <jra@samba.org>2002-01-22 19:45:17 +0000
commit1182b7cd8cdfcb5065ed5ca65be4ebfd84f44b2a (patch)
treed923a74ca02674e734471f0af218e643bc83d600 /source3/rpc_server/srv_lsa_hnd.c
parente24937d9a20649f73305ecd1a27fdde8c2be59b4 (diff)
downloadsamba-1182b7cd8cdfcb5065ed5ca65be4ebfd84f44b2a.tar.gz
samba-1182b7cd8cdfcb5065ed5ca65be4ebfd84f44b2a.tar.bz2
samba-1182b7cd8cdfcb5065ed5ca65be4ebfd84f44b2a.zip
Merge of fixes from 2.2.
Jeremy. (This used to be commit 6406a42d012184f5289d4a2b1c07a55556635fe4)
Diffstat (limited to 'source3/rpc_server/srv_lsa_hnd.c')
-rw-r--r--source3/rpc_server/srv_lsa_hnd.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c
index e4a00443a1..5affa9f5b0 100644
--- a/source3/rpc_server/srv_lsa_hnd.c
+++ b/source3/rpc_server/srv_lsa_hnd.c
@@ -110,15 +110,16 @@ BOOL create_policy_hnd(pipes_struct *p, POLICY_HND *hnd, void (*free_fn)(void *)
pol->data_ptr = data_ptr;
pol->free_fn = free_fn;
- pol_hnd_low++;
- if (pol_hnd_low == 0) (pol_hnd_high)++;
-
- SIVAL(&pol->pol_hnd.data1, 0 , 0); /* first bit must be null */
- SIVAL(&pol->pol_hnd.data2, 0 , pol_hnd_low ); /* second bit is incrementing */
- SSVAL(&pol->pol_hnd.data3, 0 , pol_hnd_high); /* second bit is incrementing */
- SSVAL(&pol->pol_hnd.data4, 0 , (pol_hnd_high>>16)); /* second bit is incrementing */
- SIVAL(pol->pol_hnd.data5, 0, time(NULL)); /* something random */
- SIVAL(pol->pol_hnd.data5, 4, sys_getpid()); /* something more random */
+ pol_hnd_low++;
+ if (pol_hnd_low == 0)
+ (pol_hnd_high)++;
+
+ SIVAL(&pol->pol_hnd.data1, 0 , 0); /* first bit must be null */
+ SIVAL(&pol->pol_hnd.data2, 0 , pol_hnd_low ); /* second bit is incrementing */
+ SSVAL(&pol->pol_hnd.data3, 0 , pol_hnd_high); /* second bit is incrementing */
+ SSVAL(&pol->pol_hnd.data4, 0 , (pol_hnd_high>>16)); /* second bit is incrementing */
+ SIVAL(pol->pol_hnd.data5, 0, time(NULL)); /* something random */
+ SIVAL(pol->pol_hnd.data5, 4, sys_getpid()); /* something more random */
DLIST_ADD(p->pipe_handles->Policy, pol);
p->pipe_handles->count++;