diff options
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_lsa_hnd.c | 4 | ||||
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c index addedaec90..b1e695360f 100644 --- a/source3/rpc_server/srv_lsa_hnd.c +++ b/source3/rpc_server/srv_lsa_hnd.c @@ -114,7 +114,7 @@ BOOL open_lsa_policy_hnd(POLICY_HND *hnd) return False; } - memset(p, 0, sizeof(*p)); + ZERO_STRUCTP(p); p->open = True; p->pnum = i; @@ -280,7 +280,7 @@ BOOL close_lsa_policy_hnd(POLICY_HND *hnd) bitmap_clear(bmap, p->pnum); - memset(p, 0, sizeof(*p)); + ZERO_STRUCTP(p); free(p); diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 54b9ce1539..3b743188a3 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -98,7 +98,7 @@ pipes_struct *open_rpc_pipe_p(char *pipe_name, pipes_open++; - memset(p, 0, sizeof(*p)); + ZERO_STRUCTP(p); p->pnum = i; p->open = True; @@ -278,7 +278,7 @@ BOOL close_rpc_pipe_hnd(pipes_struct *p, connection_struct *conn) DLIST_REMOVE(Pipes, p); - memset(p, 0, sizeof(*p)); + ZERO_STRUCTP(p); free(p); |