diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-24 18:09:33 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-24 18:09:33 +0000 |
commit | d7889cd22347e7acd4effb7682d442eef7a666e4 (patch) | |
tree | 907179b9877eece7831db52b207a5d2efcc5c469 /source3/lsarpcd | |
parent | 511b2d673649a871d406228b0bc6d4d3ac910f99 (diff) | |
download | samba-d7889cd22347e7acd4effb7682d442eef7a666e4.tar.gz samba-d7889cd22347e7acd4effb7682d442eef7a666e4.tar.bz2 samba-d7889cd22347e7acd4effb7682d442eef7a666e4.zip |
rewrote policy handle code to be generic (it's needed for client-side too)
attempted to fix regsetsec command
(This used to be commit eaac0923e0e5e3f4c3d944272a71f3235ac2a741)
Diffstat (limited to 'source3/lsarpcd')
-rw-r--r-- | source3/lsarpcd/srv_lsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lsarpcd/srv_lsa.c b/source3/lsarpcd/srv_lsa.c index b1761219af..9b6a98e9a6 100644 --- a/source3/lsarpcd/srv_lsa.c +++ b/source3/lsarpcd/srv_lsa.c @@ -48,7 +48,7 @@ static void lsa_reply_open_policy2(prs_struct *rdata) r_o.status = 0x0; /* get a (unique) handle. open a policy on it. */ - if (!open_lsa_policy_hnd(&r_o.pol)) + if (!open_policy_hnd(&r_o.pol)) { r_o.status = 0xC0000000 | NT_STATUS_OBJECT_NAME_NOT_FOUND; } @@ -71,7 +71,7 @@ static void lsa_reply_open_policy(prs_struct *rdata) r_o.status = 0x0; /* get a (unique) handle. open a policy on it. */ - if (!open_lsa_policy_hnd(&r_o.pol)) + if (!open_policy_hnd(&r_o.pol)) { r_o.status = 0xC0000000 | NT_STATUS_OBJECT_NAME_NOT_FOUND; } @@ -132,7 +132,7 @@ static void lsa_reply_query_info(LSA_Q_QUERY_INFO *q_q, prs_struct *rdata, ZERO_STRUCT(r_q); /* get a (unique) handle. open a policy on it. */ - if (r_q.status == 0x0 && !open_lsa_policy_hnd(&q_q->pol)) + if (r_q.status == 0x0 && !open_policy_hnd(&q_q->pol)) { r_q.status = 0xC0000000 | NT_STATUS_OBJECT_NAME_NOT_FOUND; } @@ -591,13 +591,13 @@ static void api_lsa_close( pipes_struct *p, prs_struct *data, r_c.status = 0x0; /* find the connection policy handle. */ - if (r_c.status == 0x0 && (find_lsa_policy_by_hnd(&(q_c.pol)) == -1)) + if (r_c.status == 0x0 && (find_policy_by_hnd(&(q_c.pol)) == -1)) { r_c.status = 0xC0000000 | NT_STATUS_INVALID_HANDLE; } if (r_c.status == 0x0) { - close_lsa_policy_hnd(&(q_c.pol)); + close_policy_hnd(&(q_c.pol)); } /* store the response in the SMB stream */ |