summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-13 17:36:42 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-13 17:36:42 +0000
commitd90063493c5e1ecd650e83797831ffe4cd83795e (patch)
treef1a2b2e37265ae14190642beaf364f097119a17b /source3
parent5e4d4deecaecafa0f858e26b0ae7c6027c49f69d (diff)
downloadsamba-d90063493c5e1ecd650e83797831ffe4cd83795e.tar.gz
samba-d90063493c5e1ecd650e83797831ffe4cd83795e.tar.bz2
samba-d90063493c5e1ecd650e83797831ffe4cd83795e.zip
use ZERO_STRUCTPN (checks for NULL) not ZERO_STRUCTP (doesn't check for NULL)
(This used to be commit 70ac9dbcecdf4be92638a24f096e4a8807997498)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_sec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_parse/parse_sec.c b/source3/rpc_parse/parse_sec.c
index c802f9c2d1..0b0c08fe13 100644
--- a/source3/rpc_parse/parse_sec.c
+++ b/source3/rpc_parse/parse_sec.c
@@ -149,7 +149,7 @@ void sec_io_acl(char *desc, SEC_ACL *t, prs_struct *ps, int depth)
{
/* reading */
t->ace = malloc(sizeof(t->ace[0]) * t->num_aces);
- ZERO_STRUCTP(t->ace);
+ ZERO_STRUCTPN(t->ace);
}
if (t->ace == NULL && t->num_aces != 0)
@@ -316,7 +316,7 @@ static void sec_io_desc(char *desc, SEC_DESC *t, prs_struct *ps, int depth)
{
/* reading */
t->dacl = malloc(sizeof(*t->dacl));
- ZERO_STRUCTP(t->dacl);
+ ZERO_STRUCTPN(t->dacl);
}
if (t->dacl == NULL)
@@ -348,7 +348,7 @@ static void sec_io_desc(char *desc, SEC_DESC *t, prs_struct *ps, int depth)
{
/* reading */
t->sacl = malloc(sizeof(*t->sacl));
- ZERO_STRUCTP(t->sacl);
+ ZERO_STRUCTPN(t->sacl);
}
if (t->sacl == NULL)
@@ -383,7 +383,7 @@ static void sec_io_desc(char *desc, SEC_DESC *t, prs_struct *ps, int depth)
{
/* reading */
t->owner_sid = malloc(sizeof(*t->owner_sid));
- ZERO_STRUCTP(t->owner_sid);
+ ZERO_STRUCTPN(t->owner_sid);
}
if (t->owner_sid == NULL)
@@ -412,7 +412,7 @@ static void sec_io_desc(char *desc, SEC_DESC *t, prs_struct *ps, int depth)
{
/* reading */
t->grp_sid = malloc(sizeof(*t->grp_sid));
- ZERO_STRUCTP(t->grp_sid);
+ ZERO_STRUCTPN(t->grp_sid);
}
if (t->grp_sid == NULL)
@@ -485,7 +485,7 @@ void sec_io_desc_buf(char *desc, SEC_DESC_BUF *sec, prs_struct *ps, int depth)
{
/* reading */
sec->sec = malloc(sizeof(*sec->sec));
- ZERO_STRUCTP(sec->sec);
+ ZERO_STRUCTPN(sec->sec);
if (sec->sec == NULL)
{