summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-03-07 18:12:42 +0000
committerLuke Leighton <lkcl@samba.org>2000-03-07 18:12:42 +0000
commit8d910edd6aa387086fabb53d26daa498f2f9e48c (patch)
tree32935a891bdeba3628b1a50147ea1d39e0ab0e13
parent61eb83d126682587d7a7970a7c63998aa8f93f43 (diff)
downloadsamba-8d910edd6aa387086fabb53d26daa498f2f9e48c.tar.gz
POL_HND_SIZE not defined any more
-rw-r--r--source/samrd/srv_samr_als_nt5ldap.c2
-rw-r--r--source/samrd/srv_samr_passdb.c6
-rw-r--r--source/winregd/srv_reg_nt.c31
3 files changed, 4 insertions, 35 deletions
diff --git a/source/samrd/srv_samr_als_nt5ldap.c b/source/samrd/srv_samr_als_nt5ldap.c
index 918d61f216b..b992027764b 100644
--- a/source/samrd/srv_samr_als_nt5ldap.c
+++ b/source/samrd/srv_samr_als_nt5ldap.c
@@ -332,7 +332,7 @@ uint32 _samr_create_dom_alias(const POLICY_HND *domain_pol,
LOCAL_GRP grp;
LDAPDB *hds = NULL;
- bzero(alias_pol, POL_HND_SIZE);
+ ZERO_STRUCTP(alias_pol);
/* find the policy handle. open a policy on it. */
if (find_policy_by_hnd(get_global_hnd_cache(), domain_pol) == -1)
diff --git a/source/samrd/srv_samr_passdb.c b/source/samrd/srv_samr_passdb.c
index a88c91b02e2..9a6c1d7dfa6 100644
--- a/source/samrd/srv_samr_passdb.c
+++ b/source/samrd/srv_samr_passdb.c
@@ -1616,7 +1616,7 @@ uint32 _samr_open_user(const POLICY_HND *domain_pol,
DOM_SID sid;
/* set up the SAMR open_user response */
- bzero(user_pol->data, POL_HND_SIZE);
+ ZERO_STRUCTP(user_pol);
/* find the policy handle. open a policy on it. */
if (!get_policy_samr_sid(get_global_hnd_cache(), domain_pol, &sid))
@@ -2190,7 +2190,7 @@ uint32 _samr_create_dom_alias(const POLICY_HND *domain_pol,
DOM_SID dom_sid;
LOCAL_GRP grp;
- bzero(alias_pol, POL_HND_SIZE);
+ ZERO_STRUCTP(alias_pol);
/* find the policy handle. open a policy on it. */
if (find_policy_by_hnd(get_global_hnd_cache(), domain_pol) == -1)
@@ -2242,7 +2242,7 @@ uint32 _samr_create_dom_group(const POLICY_HND *domain_pol,
DOM_SID dom_sid;
DOMAIN_GRP grp;
- bzero(group_pol, POL_HND_SIZE);
+ ZERO_STRUCTP(group_pol);
/* find the policy handle. open a policy on it. */
if (find_policy_by_hnd(get_global_hnd_cache(), domain_pol) == -1)
diff --git a/source/winregd/srv_reg_nt.c b/source/winregd/srv_reg_nt.c
index e213f721e59..7e1b36e01fe 100644
--- a/source/winregd/srv_reg_nt.c
+++ b/source/winregd/srv_reg_nt.c
@@ -69,37 +69,6 @@ static BOOL get_policy_reg_name(struct policy_cache *cache, POLICY_HND * hnd,
return False;
}
-#if 0
-/*******************************************************************
- reg_reply_unknown_1
- ********************************************************************/
-static void reg_reply_close(REG_Q_CLOSE * q_r, prs_struct * rdata)
-{
- REG_R_CLOSE r_u;
-
- /* set up the REG unknown_1 response */
- bzero(r_u.pol.data, POL_HND_SIZE);
-
- /* close the policy handle */
- if (close_policy_hnd(get_global_hnd_cache(), &(q_r->pol)))
- {
- r_u.status = NT_STATUS_NOPROBLEMO;
- }
- else
- {
- r_u.status = NT_STATUS_OBJECT_NAME_INVALID;
- }
-
- DEBUG(5, ("reg_unknown_1: %d\n", __LINE__));
-
- /* store the response in the SMB stream */
- reg_io_r_close("", &r_u, rdata, 0);
-
- DEBUG(5, ("reg_unknown_1: %d\n", __LINE__));
-}
-
-
-#endif
/*******************************************************************
_reg_close
********************************************************************/